Angular9 引入echarts

在组件的module中引入

import { NgxEchartsModule } from 'ngx-echarts';
import * as echarts from 'echarts';
 
imports: [NgxEchartsModule.forRoot({ echarts })]
原文地址:https://www.cnblogs.com/zhangfeitaimengle/p/13497886.html