|
|
@ -448,7 +448,8 @@ export default {
|
|
|
|
//this.setOptionDataValue();
|
|
|
|
//this.setOptionDataValue();
|
|
|
|
this.setOptionsData();
|
|
|
|
this.setOptionsData();
|
|
|
|
this.setOptionAirSize();
|
|
|
|
this.setOptionAirSize();
|
|
|
|
this.setOptionMapBlocak();
|
|
|
|
this.setOptionsTooltip();
|
|
|
|
|
|
|
|
this.setOptionMapBlock();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 标题设置
|
|
|
|
// 标题设置
|
|
|
|
setOptionsTitle() {
|
|
|
|
setOptionsTitle() {
|
|
|
@ -484,7 +485,7 @@ export default {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
label["normal"] = normal;
|
|
|
|
label["normal"] = normal;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
setOptionMapBlocak() {
|
|
|
|
setOptionMapBlock() {
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
|
const itemStyle = this.options.series[0]["itemStyle"];
|
|
|
|
const itemStyle = this.options.series[0]["itemStyle"];
|
|
|
|
const normal = {
|
|
|
|
const normal = {
|
|
|
@ -534,6 +535,26 @@ export default {
|
|
|
|
maxSize4Pin = this.optionsSetup.fontmaxSize4Pin;
|
|
|
|
maxSize4Pin = this.optionsSetup.fontmaxSize4Pin;
|
|
|
|
minSize4Pin = this.optionsSetup.fontminSize4Pin;
|
|
|
|
minSize4Pin = this.optionsSetup.fontminSize4Pin;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
// tooltip 设置
|
|
|
|
|
|
|
|
setOptionsTooltip() {
|
|
|
|
|
|
|
|
const optionsSetup = this.optionsSetup;
|
|
|
|
|
|
|
|
const tooltip = {
|
|
|
|
|
|
|
|
trigger: "item",
|
|
|
|
|
|
|
|
show: true,
|
|
|
|
|
|
|
|
textStyle: {
|
|
|
|
|
|
|
|
color: optionsSetup.tipsColor,
|
|
|
|
|
|
|
|
fontSize: optionsSetup.tipsFontSize,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
formatter: function (params) {
|
|
|
|
|
|
|
|
if (params.value.length > 1) {
|
|
|
|
|
|
|
|
return params.data.name + "" + params.data.value[2];
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
return params.name;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
this.options.tooltip = tooltip;
|
|
|
|
|
|
|
|
},
|
|
|
|
//数据解析
|
|
|
|
//数据解析
|
|
|
|
setOptionsData(e, paramsConfig) {
|
|
|
|
setOptionsData(e, paramsConfig) {
|
|
|
|
const optionsData = this.optionsData; // 数据类型 静态 or 动态
|
|
|
|
const optionsData = this.optionsData; // 数据类型 静态 or 动态
|
|
|
|