@ahhsan,
Please check out this forum thread for more information on rendering dynamic chart for ECG along with an example.
If you are still facing issue, can you kindly create JSFiddle & share it with us so that we can look into the code, understand the scenario better & help you out?
—
Vishwas R
Team CanvasJS