Home › forums › Using CanvasJS › Dynamic chart extra lines being added › Reply To: Dynamic chart extra lines being added
Every time you call update chart, the new dataPoints along with the complete set of existing dataPoints gets added to the chart. Hence, the complete graph will be drawn repeatedly on top of each other. Clearing the existing dataPoints before adding the next set(complete set) of dataPoints should work fine in your case. Please take a look at this jsfiddle.
Priyanka M S