-
Hi there. I am currently working on a project using chartjs. I have a question while using it. The desired result is the largest value on the chart is at the top of the y-axis. But, if the max value is not entered, nice number algorithm is automatically applied. There is a way to continuously update the max value of the y-axis, but it is cumbersome to find because it is a real-time chart. I was wondering if there are any possible options to solve this problem. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The ticks are generated using "nice" numbers => set https://www.chartjs.org/docs/latest/axes/cartesian/#scale-bounds |
Beta Was this translation helpful? Give feedback.
The ticks are generated using "nice" numbers => set
bounds: 'data'
in y-axis options.https://www.chartjs.org/docs/latest/axes/cartesian/#scale-bounds