Home forums Using CanvasJS JSON Data Import Structure…

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Suyash Singh 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #18866

    Hi,
    I’m new to this and I get the following JSON data back from my vendor’s API –

    {“start”:”2018-01-01T08:00:00.000Z”,”data”:[[280769,0],[654444,135667],[675676,158785],[224538,0],[544889,109952],[1855162,302027],[3610876,0],[2694555,0],[2968105,204082],[2301808,0]]}

    This data has a start timestamp and the ‘data’ is In/Out traffic from that starting point and in 5 minute intervals.

    How would I go about displaying this data on a line chart?

    Thanks for your help.

    E.

    #18875

    Suyash Singh
    Moderator

    Eric,

    Please have a look at this jsfiddle.

    ___
    Suyash Singh
    Team CanvasJS

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

You must be logged in to reply to this topic.