Home Forums Chart Support CanvasJS Chart not calling rangeChanging method

CanvasJS Chart not calling rangeChanging method

Viewing 2 posts - 1 through 2 (of 2 total)
  • #25587

    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)
    { }
    }

    #25593

    @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

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.