Chart.js icon indicating copy to clipboard operation
Chart.js copied to clipboard

data line

Open michelreyes opened this issue 13 years ago • 2 comments

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?

michelreyes avatar Jun 03 '13 11:06 michelreyes

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.

nnnick avatar Jun 05 '13 21:06 nnnick

Thanks nnick i don't know the scaleOverride option, there are any other options?

michelreyes avatar Jun 06 '13 10:06 michelreyes