In angluar.json, please add the following line.
{
...,
"scripts":
[ "node_modules/echarts/dist/echarts.min.js",
...
],
}