@girishacharya,
From the error shown above, it seems there is no div with id BarContainer
on executing the code to render the chart. You can try to define div with id BarContainer
in your html file.
Also, you can check out our Angular Charts Gallery for examples on integrating chart in angular app.

If you are still facing the issue, kindly share Sample Project along with sample data reproducing the issue over Google Drive / Onedrive so that we can look into the code, understand the scenario better and help you out?
—-
Manoj Mohan
Team CanvasJS