第一步:
在vue项目中安装echars
npm i echars -S
第二步:
main.js配置 这里是全局引入
//引入echars
import echarts from 'echarts'
Vue.prototype.$echarts = echarts
第三步
直接上代码
<template>
<div id=container>
<header>浙江省echars地图</header>
<div id=echarsMap></div>
</div>
</template>
[removed]
//引入json
import zhejiang from .