Home › forums › Using CanvasJS › Dynamic chart extra lines being added › Reply To: Dynamic chart extra lines being added
Please take a look at this Gallery example for working code on rendering chart with data from JSON.
setTimeout method calls a function or evaluates an expression after a specified number of milliseconds (only once) whereas setInterval method calls a function or evaluates an expression at specified intervals (in milliseconds). Changing setTimeout to setInterval should work fine in this case.
If you are still facing the issue, kindly share sample project reproducing the issue along with sample JSON over Google-Drive or Onedrive so the we can look into the code, run it locally to understand the scenario better and help you resolve.