一、我们需要安装echarts、下载China.js文件
这是我的微信公众号全是技术文章:
1.echarts安装方法:
npm install echarts --save
main.js里面 import echarts from 'echarts' Vue.prototype.$echarts = echarts
2.china.js下载地址:
https://github.com/ecomfe/echarts/blob/master/map/js/china.js(echarts官方github地址)
现在完之后 放到static下面如图所示:
二、请记住,不管用echarts画柱形图、扇形图、环形图、地图、散点图、、、最外面一定要有个:有固定高度的容器
&nbs