You must be logged in to post your query.
Home › Forums › Chart Support › Can’t adjust scale of Y axis when re-rendering
Tagged: render scale
See this at jsfiddle.net/canvasjs/QwZuf
function ChangeScale() { var iMax = chart.axisY[0].maximum; var iMaxNew = iMax * 3; var iInterval = chart.axisY[0].interval; var iIntervalNew = iInterval * 3; chart.axisY[0].maximum = iMaxNew; chart.axisY[0].interval = iIntervalNew; chart.render(); alert(iMaxNew + ' is bigger than ' + iMax + ', but the scale did not change.'); }
@scottpendleton,
You can update interval & maximum by updating chart options or by using set method. Please take a look at this updated JSFiddle.
— Vishwas R Team CanvasJS
You must be logged in to reply to this topic. Login/Register