'Setting a chart.js Scale Min as the Y-Axis Bottom Ticker minus the Generated Step Size
Suppose I have a chart.js chart with no stepSize so the y-axis ticker values are generated as below based on my data as an example:
How can I insert a new bottom ticker by setting the scale min value to the generated bottom ticker minus the generated step to achieve the result below? (Here the step generated by chart.js was 200, subtract it from the bottom ticker of 2,200 to get 2,000 and set the min value to that.)
Note adding a grace doesn't achieve the effect I'm looking for.
chart config:
scales: {
A: {
min: //How to set this to lowest tick minus step?
}
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|