I am looking for the way to reach minimum value of the chart.
I found and tried options.scales.yAxes[n].ticks.beginAtZero = true but 0 is too small to be a minimum value of my chart.
is there any way to set minimum value of the chart in Object(or using Method)?
(Chart.js) how can I set min value(and max value if I can) as a specific number?
560 views Asked by Junho Ahn At
1
From your sample
options, it seems you're using Chart.js v2 but not v3 as the tag chart.js3 suggests.Therefore, you can use
options.scales.yAxes[n].ticks.minThe same could be achieved with Chart.js v3 by defining
options.scales.y.minas explained here.