Sets the maximum value permitted on Axis. Values greater than maximum are clipped. maximum also sets the upper limit while panning chart.
Default: Automatically Calculated based on the datavar chart = new CanvasJS.Chart("container", { . . axisX:{ maximum: 150, }, . . }); chart.render();
Also See:
5 Comments
It’s possible display chart with Max and Min, if the max value in data is not near max ?
Example :
Min : 0
Max : 100
=> Data [12, 23, 14, 25, 36]
Yes. Please refer this example.
I am using dynamic data. Is it possible to clear the maximum after it has been set?
For example, I set the maximum = 200, then after I have 200 data points I want the maximum to be auto calculated.
How can I do that?
kevin,
In CanvasJS library you can reset any property by setting it to null. So, setting
maximum = null
will fulfill your requirement.yes. Thank you. Nice product btw