Home forums Using CanvasJS Creating line graph from array of coordinates

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

    I’m trying to create a line graph from two arrays, one containing x-coordinates, and one containing y-coordinates. Can anyone show an example of how to do this?

    I’ve been trying to adapt the for loop to create random points in the stress test graphs but can’t get anything to work so far, any help would be appreciated. Thanks.

    #15840

    @harryroberts,

    Please take a look at this example to populate chart using arrays.

    ___
    Indranil Deo
    Team CanvasJS

    • This reply was modified 2 years, 3 months ago by Indranil Deo.
    • This reply was modified 2 years, 3 months ago by Indranil Deo.
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.