wxqworld

1首先 需要 下载echarts

2  在main 中 需要引入  

import echarts from \'echarts/dist/echarts.min.js\'
import china from \'echarts/map/json/china.json\'
echarts.registerMap(\'china\', china)
Vue.prototype.$echarts = echarts

 

必须要 引入  第二行 和第三行 ,保证地图 数据能被渲染!

分类:

技术点:

相关文章:

  • 2021-09-17
  • 2021-12-04
  • 2021-10-20
  • 2021-12-04
  • 2021-09-16
  • 2021-10-29
  • 2021-12-07
  • 2021-12-07
猜你喜欢
  • 2021-10-19
  • 2021-07-25
  • 2021-10-19
  • 2021-04-20
  • 2022-01-03
  • 2021-12-07
  • 2021-12-04
相关资源
相似解决方案