vue2中使用echarts

1.安装  :  npm install echarts --save

2、在main.js中引入echarts  

import * as echarts from "echarts";
Vue.prototype.$echarts = echarts;

3.页面中使用

 






你可能感兴趣的:(大数据)