VUE使用echart实现柱状图、折线图、饼图、地图、仪表盘
引入echarts1.main.js中引入import echarts from 'echarts'// 全局方法挂载Vue.prototype.echarts = echarts2.package.json设置版本 "dependencies": { "echarts": "^4.2.1", }3.局部引用:在需要的页面引入const echarts = require("echarts");柱状图1.创建容器div(必须指定高度)<div style="heigh
原创
2021-06-01 11:15:37 ·
1664 阅读 ·
0 评论