DEV Community

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

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.