Home › forums › Using CanvasJS › Dual Line Graph rendering incorrectly.
This topic contains 2 replies, has 2 voices, and was last updated by Suyash Singh 6 months, 2 weeks ago.
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.
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…
– Fixed by just using another JS Library for charts. –
Seems like your dataPoints weren’t sorted. Please have a look at this updated jsfiddle.
You must be logged in to reply to this topic.