Chart.js
Chart.js copied to clipboard
data line
I have in data only 7 datas [1,1,3,8,5,11,3] and the left axis says: 2.5, 5, 7.5, 10, 12.5, until 20.What can i do to only view the exact value of my data?
I'm not sure if I completely understand the problem here? Chart.js will dynamically generate a scale and use logic based on the size of the canvas to decide how many steps to show.
If you know your universe of data and want to show a hard coded scale, you can use the scaleOverride option when creating the chart.
Thanks nnick i don't know the scaleOverride option, there are any other options?