|
|
|
@ -1,5 +1,7 @@
@@ -1,5 +1,7 @@
|
|
|
|
|
<template> |
|
|
|
|
|
|
|
|
|
<div :class="className" :style="{ height: height, width: width }" /> |
|
|
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
@ -69,7 +71,7 @@ export default {
@@ -69,7 +71,7 @@ export default {
|
|
|
|
|
this.$el.innerHTML = html; |
|
|
|
|
this.$el.removeAttribute('_echarts_instance_') |
|
|
|
|
} |
|
|
|
|
this.chart.setOption({ |
|
|
|
|
this.chart.setOption({ |
|
|
|
|
title: { |
|
|
|
|
text: this.otTitle+"项目地区分布", |
|
|
|
|
x:'center', |
|
|
|
@ -92,29 +94,65 @@ export default {
@@ -92,29 +94,65 @@ export default {
|
|
|
|
|
visualMap: { |
|
|
|
|
min: 0, |
|
|
|
|
max: 600, |
|
|
|
|
range:[1, 600], |
|
|
|
|
// range:[1, 600], |
|
|
|
|
text: ["High", "Low"], |
|
|
|
|
realtime: false, |
|
|
|
|
calculable: true, |
|
|
|
|
color: "#fff", |
|
|
|
|
inRange: { |
|
|
|
|
color: ["lightskyblue","#3300CC","yellow", "orangered","red"], |
|
|
|
|
color: ['#a2cfff', '#7ebdfe', '#3c97fa','#0063f9'],//数据少到多 |
|
|
|
|
symbolSize: [30, 100] |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
// visualMap: { |
|
|
|
|
// // type: "piecewise", |
|
|
|
|
// min: 0, |
|
|
|
|
// max:that.yMax, |
|
|
|
|
// left: 30, |
|
|
|
|
// realtime: false, |
|
|
|
|
// calculable: true, |
|
|
|
|
// color: "#fff", |
|
|
|
|
// inRange: { |
|
|
|
|
// // color: ['#1E62AC', '#2E98CA', '#27bce6'] //数据少到多 |
|
|
|
|
// color: ['#4BC0C8', '#C779D0', '#FEAC5E'] |
|
|
|
|
// }, |
|
|
|
|
// textStyle: { |
|
|
|
|
// color: '#24CFF4' |
|
|
|
|
// } |
|
|
|
|
// // pieces: [ |
|
|
|
|
// // { gte: 1000, label: "大于等于1000" }, // (10, Infinity] |
|
|
|
|
// // { gte: 1, lte: 999000, label: "小于1000" }, // (1, 9] |
|
|
|
|
// // { lt: "", label: "-" }, // (-Infinity, 1) |
|
|
|
|
// // ], |
|
|
|
|
// }, |
|
|
|
|
series: [ |
|
|
|
|
{ |
|
|
|
|
name: "项目地区分布", |
|
|
|
|
type: "map", |
|
|
|
|
mapType: 'china', // 自定义扩展图表类型 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
label: { |
|
|
|
|
show: true, |
|
|
|
|
normal: { show: false }, |
|
|
|
|
emphasis: { show: true }, |
|
|
|
|
color: '#fff', |
|
|
|
|
}, |
|
|
|
|
data: this.mapData, |
|
|
|
|
// data: [ |
|
|
|
|
// {name:"上海",value:100}, |
|
|
|
|
// {name:"新疆",value:200} |
|
|
|
|
// ], |
|
|
|
|
itemStyle: { |
|
|
|
|
normal: { |
|
|
|
|
// 地图边界颜色 |
|
|
|
|
borderColor: '#fff', |
|
|
|
|
// 地图区域背景颜色 |
|
|
|
|
areaColor: '#AAD5FF', |
|
|
|
|
// color: '#fff', |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
// 鼠标放上去高亮的样式 |
|
|
|
|
emphasis: { |
|
|
|
|
// 鼠标放上去地图区域背景颜色 |
|
|
|
|
areaColor: '#2d38ff', |
|
|
|
|
borderWidth: 0, |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}); |
|
|
|
|