Is it possible to return x-ax values ​​in a line chart using chart.js

I use chart.js and I have a line chart with values from 10 to 100 . My top point is 100, but this is not true for my data. For me, 100 is a bad result. Is there a way to revert x-axe to start from 100 to 10 .

If this is not possible, can someone recommend a javascript chart (NO jQuery) that can solve my problem?

+5
source share
1 answer

Try this in the chart settings:

 scaleOverride: true, scaleSteps: 10, scaleStartValue: 100, scaleStepWidth: -10 

This is just an attempt to do the trick.

See jsfiddle here .

+2
source

Source: https://habr.com/ru/post/1214891/


All Articles