Sets the maximum value permitted on Axis. Values greater than maximum are clipped. maximum also sets the upper limit while panning chart.
var chart = new CanvasJS.Chart("container", { . . axisX:{ maximum: 150, }, . . }); chart.render();
Also See:
Comments 5
Server Side Technologies |
Front End Technologies |
Contact |
|
---|---|---|---|
ASP.NET MVC Charts | JavaScript Charts | FAQs | |
PHP Charts | jQuery Charts | Sales Enquiries | |
Spring MVC Charts | React Charts | Support Forum | |
JSP Charts | Angular Charts | Careers | |
JavaScript StockCharts | |||
Privacy Policy © fenopix
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