使用Echarts时要下载echarts-for-react插件
npm install echarts-for-react
导入ReactECharts
代码中使用
<ReactECharts option={Plot} theme={theme} />
option是图表的配置 theme参数是主题
npm install echarts-for-react
代码中使用
<ReactECharts option={Plot} theme={theme} />
option是图表的配置 theme参数是主题