引入echarts
npm install echarts -s
import * as echarts from 'echarts';
Vue.prototype.$echarts = echarts
全部代码
<!-- html部分 -->
<div id="myCharts7" ref="myCharts7" style="width: 6.5rem;height: 5.77rem;margin: auto"></div>
import Jinan from '/public/map/Jinan.json';
import ChangQing from '/public/map/ChangQing.json';
data() {
return {
dataList: [
{
ename: Jinan, name: "济南"},
{
ename: ChangQing, name: "长清区"},
{
ename: ZhangQiu, name: "章丘区"},
{
ename: ShangHe, name: "商河县"},
{
ename: LiXia, name: "历下区"},
{
ename: LiCheng, name: "历城区"},
{
ename: GangCheng, name: "钢城区"},
{
ename: LaiWu, name: "莱芜区"},
{
ename: PingYin, name: "平阴县"},
{
ename: JiYang, name: &#