@biswajitpaul01,
It seems like the dataPoints you are passing are not in sequence/ascending order. As CanvasJS doesn’t sort dataPoints, the chart is rendered in the same sequence in which the dataPoints are passed where there are few jumbled dataPoints. To avoid such issues, you can sort dataPoints in the ascending order before rendering the chart.
—
Shashi Ranjan
Team CanvasJS