@Larry,
Chart is rendered based on the sequence of datapoints given. If {x:5,y:7}
is given first then {x:4,y:5}
, it renders x:5 and then x:4. To avoid such issues, you can sort dataPoints before rendering the chart. Please take a look at this jsfiddle.
___________
Indranil Deo,
Team CanvasJS