Home forums Using CanvasJS Live line chart

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #27426

    For live line chart when I submit the input as
    [[0,19 ],[1,17],[2,14],[3,14],[4,14],[5,14],[6,14],[7,14],[8,14],[9,14]]
    and make changes in the graph only x 0 gets updated and the values don’t cascade. Is the input wrong or any other details missing ?

    #27435

    @shashankb08,

    Parsing the above data in the format accepted by CanvasJS before passing it to the Chart options should work fine in your case. Please take a look at this documentation page for detailed steps on achieving the same.

    ___________
    Indranil Deo,
    Team CanvasJS

    #27437

    So, if I take the data from flask then the address changes to
    $.getJSON(“http://0.0.0.0:5000/try”, addData);
    In try, I take data from a text file which is exactly in the same format. Then I don’t get the output as shown.
    That is where the problem is.

    #27449

    @shashankb08,

    Can you kindly create a sample project along with sample data reproducing the issue and share it over google-drive or onedrive so that we can look into your code, understand the scenario better and help you out?

    ___________
    Indranil Deo,
    Team CanvasJS

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

You must be logged in to reply to this topic.