@user12947,
Please take a look at this sample project to integrate CanvasJS with Angular.
In case you are still facing the issue, kindly share sample project reproducing the issue over google-drive or Onedrive so that we can run sample locally at our end, understand the scenario better and help you out.
—-
Manoj Mohan
Team CanvasJS