Home forums Using CanvasJS Dual Line Graph rendering incorrectly.

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by  Suyash Singh 4 months, 3 weeks ago.

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

    jjas850
    Member

    Hello,

    I am having some issues with the rendering of a graph with two separate lines.

    I have already gotten the data from the db, and formatted it to have the same date so that they would overlay, just the times different, but it is rendering in an odd fashion.

    JSFiddle: https://jsfiddle.net/6pba1jvv/

    As you can see, the lines are all over the place, even though the data for the x axis is unique per datapoint in each line’s dataset…

    I have changed it to area type for the purpose of further showing how weirdly it is rendering…

    #15197

    jjas850
    Member

    – Fixed by just using another JS Library for charts. –

    #15206

    Suyash Singh
    Moderator

    Hi @jjas850,

    Seems like your dataPoints weren’t sorted. Please have a look at this updated jsfiddle.

    ___
    Suyash Singh
    Team CanvasJS

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

You must be logged in to reply to this topic.