DEV Community

Discussion on: Build Your Expense Tracker using chart.js - PART-1

Collapse
 
parimal20 profile image
Parimal Prajapati

Can you help me for my issue?
I want to begin from zero on the y-axis but after zero directly want to show dataset value on the y-axis as per I have attached image.
dev-to-uploads.s3.amazonaws.com/up...

Collapse
 
kirtisingh3008 profile image
Kirti
options: {
    scales: {
        yAxes: [{
            ticks: {
                beginAtZero: true
            }
        }]
    }
}
Enter fullscreen mode Exit fullscreen mode

Did you try this?

Collapse
 
parimal20 profile image
Parimal Prajapati

Yes. I tried beginAtZero but it automatically creating stepsize. It doesn't giving a desired result. I have attached image link of using beginAtZero.
dev-to-uploads.s3.amazonaws.com/up...

if you know how can i achieve desired result please let me know.