Vue中Echarts使用示例


Vue中Echarts使用示例

示例

1 引入echarts的三方包

npm install echarts --save

2.引入三方包(main.js)

const echarts = require("echarts");
Vue.prototype.$echarts = echarts;

3.使用echarts(页面.vue)

创建一个用于存放表格的容器(必须有长和宽)