echarts地图怎么实现(用echarts实现世界地图)

第一步,下载echarts

npm install echarts --save

第二步,在main.js中全局引入

//引入echartsimport echarts from 'echarts'Vue.prototype.$echarts = echarts

第三步,建立echarts组件

vue中使用echarts来绘制地图

世界地图

vue中使用echarts来绘制地图

注意:只需要将请求来的json放在 series中的data即可

版权声明:
作者:Joker 链接:https://hooper.eu.org/archives/1327
文章版权归作者所有,转载请注明出处。
THE END
分享
二维码
打赏
< <上一篇
下一篇>>