You must be logged in to post your query.
Home › Forums › Chart Support › Axis-Y stripLines autoscale
Tagged: Axis-Y stripLines autoscale
The y-axis does not auto-resize to display the the stripLines. I have to set maximum e minimum manually.
@maurizio-fanigliulo,
Axis range is calculated according to the datapoint values and not the striplines. So if the stripline value is more than that of the axis range, it won’t be shown in the plot-area. In this scenario, you can dynamically set the axis range to show stripline with the help of set method as shown below –
chart.axisY[0].set("maximum", chart.axisY[0].stripLines[0].get("value") + chart.axisY[0].get("interval"));
Kindly take a look at this JSFiddle for a working example with complete code.
___________ Indranil Singh Deo Team CanvasJS
You must be logged in to reply to this topic. Login/Register