提交 af7d3272 编写于 作者: 绿岸公式's avatar 绿岸公式

Importing required components for echarts

上级 298a838e
import * as echarts from 'echarts/core';
import { ScatterChart, LinesChart, EffectScatterChart } from 'echarts/charts';
import {
TooltipComponent,
GridComponent,
GeoComponent,
} from 'echarts/components';
import { LabelLayout, UniversalTransition } from 'echarts/features';
import { CanvasRenderer } from 'echarts/renderers';
echarts.use([
TooltipComponent,
GridComponent,
GeoComponent,
ScatterChart,
LinesChart,
EffectScatterChart,
LabelLayout,
UniversalTransition,
CanvasRenderer
]);
export default echarts;
......@@ -5,7 +5,7 @@
</template>
<script>
// 引入echarts
import * as echarts from "echarts";
import echarts from "@/components/echarts";
// 引入中国,城市地图
import { chinaJson,cityArr } from "../../../public/echarts/city.js"
export default {
......
......@@ -5,7 +5,7 @@
</template>
<script>
// 引入echarts
import * as echarts from "echarts";
import echarts from "@/components/echarts";
// 引入中国,城市地图
import { chinaJson } from "../../../public/echarts/city.js"
import Bus from "@/common/bus"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册