|
@@ -21,91 +21,6 @@ export default {
|
|
|
let myChart = this.$echarts.init(
|
|
|
document.getElementById("EMiddleMap")
|
|
|
);
|
|
|
- // 指定图表的配置项和数据
|
|
|
- // let option =
|
|
|
- // {
|
|
|
- // tooltip: {},
|
|
|
- // visualMap: {
|
|
|
- // min: 200,
|
|
|
- // max: 1500,
|
|
|
- // left: "left",
|
|
|
- // top: "bottom",
|
|
|
- // text: ["High", "Low"],
|
|
|
- // seriesIndex: [1],
|
|
|
- // inRange: {
|
|
|
- // color: [
|
|
|
- // "#45DE92",
|
|
|
- // "#E0C740",
|
|
|
- // "#46DF3C",
|
|
|
- // "#4038E0",
|
|
|
- // "#4038E0",
|
|
|
- // ],
|
|
|
- // },
|
|
|
- // calculable: true,
|
|
|
- // },
|
|
|
- // geo: {
|
|
|
- // map: "湖州市",
|
|
|
- // type: "map3D",
|
|
|
- // roam: true,
|
|
|
- // label: {
|
|
|
- // normal: {
|
|
|
- // show: true,
|
|
|
- // textStyle: {
|
|
|
- // color: "#FF5A74",
|
|
|
- // fontSize: 25,
|
|
|
- // },
|
|
|
- // },
|
|
|
- // },
|
|
|
- // itemStyle: {
|
|
|
- // normal: {
|
|
|
- // borderColor: "rgba(0, 0, 0, 0.2)",
|
|
|
- // },
|
|
|
- // emphasis: {
|
|
|
- // areaColor: null,
|
|
|
- // shadowOffsetX: 0,
|
|
|
- // shadowOffsetY: 0,
|
|
|
- // shadowBlur: 20,
|
|
|
- // borderWidth: 0,
|
|
|
- // shadowColor: "rgba(0, 0, 0, 0.5)",
|
|
|
- // },
|
|
|
- // },
|
|
|
- // },
|
|
|
- // series: [
|
|
|
- // {
|
|
|
- // type: "scatter",
|
|
|
- // coordinateSystem: "geo",
|
|
|
- // symbolSize: 20,
|
|
|
- // symbol: "none",
|
|
|
- // symbolRotate: 35,
|
|
|
- // label: {
|
|
|
- // normal: {
|
|
|
- // formatter: "{b}",
|
|
|
- // position: "right",
|
|
|
- // show: false,
|
|
|
- // },
|
|
|
- // emphasis: {
|
|
|
- // show: true,
|
|
|
- // },
|
|
|
- // },
|
|
|
- // itemStyle: {
|
|
|
- // normal: {
|
|
|
- // color: "#F06C00",
|
|
|
- // },
|
|
|
- // },
|
|
|
- // },
|
|
|
- // {
|
|
|
- // name: "categoryA",·
|
|
|
- // type: "map",
|
|
|
- // geoIndex: 0,
|
|
|
- // // tooltip: {show: false},
|
|
|
- // data: [
|
|
|
- // // { name: "长兴县", value: "0" },
|
|
|
- // // { name: "安吉县", value: "111" },
|
|
|
- // // { name: "上海", value: "222" },
|
|
|
- // ],
|
|
|
- // },
|
|
|
- // ],
|
|
|
- // };
|
|
|
let option = {
|
|
|
tooltip: {
|
|
|
formatter: function (params) {
|
|
@@ -118,7 +33,6 @@ export default {
|
|
|
);
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
textStyle: {
|
|
|
fontSize: 25,
|
|
|
color: "#fff",
|
|
@@ -141,15 +55,15 @@ export default {
|
|
|
// },
|
|
|
series: [
|
|
|
{
|
|
|
- name: "湖州市",
|
|
|
+ name: "长兴县",
|
|
|
type: "map3D",
|
|
|
- map: "湖州市",
|
|
|
- data: [{ name: "长兴县", value: ["数量:", 422290] }],
|
|
|
+ map: "长兴县",
|
|
|
+ data: [{ name: "吕山乡", value: ["数量:", 422290] }],
|
|
|
regionHeight: 4,
|
|
|
boxWidth: 120,
|
|
|
// top: "10%",
|
|
|
// bottom: "10%",
|
|
|
- boxDepth: 100,
|
|
|
+ boxDepth: 120,
|
|
|
regionHeight: 5,
|
|
|
// environment: new this.$echarts.graphic.LinearGradient(
|
|
|
// 0,
|
|
@@ -186,7 +100,7 @@ export default {
|
|
|
textStyle: {
|
|
|
color: "#FFFFFF",
|
|
|
fontWeight: "normal",
|
|
|
- fontSize: 25,
|
|
|
+ fontSize: 20,
|
|
|
backgroundColor: "rgba(0, 0, 0, 0)",
|
|
|
},
|
|
|
emphasis: {
|
|
@@ -218,7 +132,7 @@ export default {
|
|
|
viewControl: {
|
|
|
autoRotate: false, // 自动旋转
|
|
|
// distance: 115,
|
|
|
- distance: 140,
|
|
|
+ distance: 130,
|
|
|
},
|
|
|
},
|
|
|
],
|