How to set x-axis tick values for Charts.js line chart?
-
This is the first column of data in my csv file:
My x-axis label number 0 0.018 17.982 18
The chart is being displayed with the x-axis tick points being [0, 0.018, 17.982, 18] and evenly spaced (so, therefore, non-linear).
How can I set the tick points to [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18] without altering the input data?
I have tried this in the Manual Configuration section:
{ "stepSize": 1 }
but it doesn’t seem to make any difference.
I’ve also tried changing the settings in Horizontal Axis Settings > Tick Settings, but they do not seem to affect the chart either.
Any help would be much appreciated.
Thanks in advance,
James
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How to set x-axis tick values for Charts.js line chart?’ is closed to new replies.