Home forums Using CanvasJS JSON and Multi-Series Chart

This topic contains 6 replies, has 3 voices, and was last updated by  Bryan 9 months, 2 weeks ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #13653

    dimas19801
    Member

    Good afternoon. Please help with JSON and Multi-Series Chart.

    There JSON:

    [{"label":"MS01","t":"2016-12-16 10:10:00","y":38},{"label":"MS01","t":"2016-12-16 10:12:00","y":28},
    {"label":"MS01","t":"2016-12-16 10:15:00","y":25},{"label":"MS02","t":"2016-12-16 10:11:00","y":22},
    {"label":"MS02","t":"2016-12-16 10:13:00","y":22},{"label":"MS02","t":"2016-12-16 10:15:00","y":28},
    {"label":"MS03","t":"2016-12-16 10:11:00","y":22},{"label":"MS03","t":"2016-12-16 10:13:00","y":11},
    {"label":"MS04","t":"2016-12-16 10:13:00","y":11},{"label":"MS04","t":"2016-12-16 10:14:00","y":12}]

    How to Build a Multi-Series Chart, using the time data? Where is the line – a label value from JSON.

    • This topic was modified 10 months ago by  dimas19801.
    • This topic was modified 10 months ago by  dimas19801.
    • This topic was modified 10 months ago by  dimas19801.
    • This topic was modified 10 months ago by  dimas19801.
    #13658

    Bivek Singh
    Moderator

    @dimas19801

    Please take a look at this jsFiddle.

    #13666

    dimas19801
    Member

    Cool! Thanks for the help! I really like your graphics!

    #13874

    Bryan
    Member

    I have this JSON

    https://bamwx.com/forecasts/tele/tele-test.php

    I need each member to be a different line. I have 6 different parameters and 6 different models to pull from and all have a different number of members and go out a different amount of hours so I’m trying to keep it dynamic as much as possible.

    #13875

    Bivek Singh
    Moderator

    Bryan,

    Please take a look at this jsFiddle.

    #13878

    Bryan
    Member

    This is awesome.

    The table is actually flipped and x is pulling the members not the hours. I updated the JSON to pull correctly I think…

    #13879

    Bryan
    Member

    I think I figured it out.

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

You must be logged in to reply to this topic.