You must be logged in to post your query.
Home › Forums › Chart Support › CanvasJS Chart not calling rangeChanging method
Tagged: CanvasJS Chart rangeChanging
var chart = new CanvasJS.Chart(“chartContainer”, { animationEnabled: true, theme: “light2”, title: { text: “TESTING!! ” }, subtitles: [{ text: “test” }], rangeChanging: getViewport, axisX: { title: “”, tickLength: 0, margin: 0, lineThickness: 0, valueFormatString: ” “, }, data: [ { type: “line”, lineColor: “#00b7c3”, indexLabel: “{y}”, indexLabelPlacement: “outside”, dataPoints: [ ] } ] });
function getViewport(e) { try { if (e.chart.isMouseDown && e.chart.draggingDataPoint) { } } catch (ex) { } }
@vijenderreddy,
rangeChanging seems to be working fine, please take a look at this JSFiddle. Also refer documentation on rangeChaging for more information and live example.
If you are still facing issue, kindly create a JSFiddle reproducing the issue and share it with us so that we can run it locally at our end to understand the scenario better and help you out.
— Vishwas R Team CanvasJS
You must be logged in to reply to this topic. Login/Register