dhtmlxChart yAxis scale

Can the yAxis only be defined when the chart loads?

Is there any way to change the end/max number based on the data. For example, I have a line chart with a yAxis ranging from 0 to 100. Lets say the xAxis represents each day in the month of October, and the highest value is 75 on October 23. The chart should look fairly normal.

Now, for example, I have a chart and the xAxis represents each day in the month of November. This time the highest value is 25. Can I change the yAxis to be from 0 to 50 so it wont look mostly white?


You can define any custom scale. Just apply in the properties “start” and “end” any logic you need.
Or you can use automatic scale: to miss parameters ‘start’, ‘end’ & ‘step’ to force chart draw the scale automatically.
See this sample:
dhtmlx.com/docs/products/dht … cales.html


Thanks! I must have missed the automatic scale mode.

You are welcome!