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.
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.set("maximum", chart.axisY.stripLines.get("value") + chart.axisY.get("interval"));
Kindly take a look at this JSFiddle for a working example with complete code.
Indranil Singh Deo
You must be logged in to reply to this topic. Login/Register