Home forums Using CanvasJS Call 2 arrays in the datapoints[ ]

This topic contains 2 replies, has 2 voices, and was last updated by  echhabra 5 months, 2 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #11431

    echhabra
    Member

    Hi, I have 2 arrays which is dynamically being made with some algorithm and it all depends on the user inputs.

    I want to plot each of the arrays in respective axis of the graph. That is call the 1 array(with dates) for the x-axis values and 1 array with numbers for y-axis.

    So how do I call the 2 arrays in the datapoints[ ] ?

    #11432

    Sanjoy
    Moderator

    Elina,

    In this case you have to parse the arrays according to data format. Here is an example.

    #11436

    echhabra
    Member

    Thanks Sanjoy,

    The code works perfectly. Thanks you so much. You are the best!

    Regards,
    Elina

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

You must be logged in to reply to this topic.