Commit 3d99b5ab by liangjianmin

数字隐藏

parent e75b9463
Showing with 4 additions and 57 deletions
......@@ -15,59 +15,6 @@
return this;
},
maps: function () {
var myChart = echarts.init(document.getElementById('map'));
var option = {
tooltip: {
// show: false //不显示提示标签
formatter: '{b}', //提示标签格式
backgroundColor: "#ff7f50", //提示标签背景颜色
textStyle: {
color: "#fff"
} //提示标签字体颜色
},
series: [{
type: 'map',
mapType: 'china',
label: {
normal: {
show: false, //显示省份标签
textStyle: {
color: "#c71585"
} //省份标签字体颜色
},
emphasis: { //对应的鼠标悬浮效果
show: true,
textStyle: {
color: "#800080"
}
}
},
itemStyle: {
normal: {
borderWidth: .5, //区域边框宽度
borderColor: '#009fe8', //区域边框颜色
areaColor: "#fff", //区域颜色
},
emphasis: {
borderWidth: .5,
borderColor: '#4b0082',
areaColor: "#ffdead",
}
},
data: [{
} //福建为选中状态
]
}],
};
myChart.setOption(option);
myChart.on('mouseover', function (params) {
var dataIndex = params.dataIndex;
console.log(params);
});
},
map: function () {
$.ajax({
......@@ -330,7 +277,7 @@
barWidth: 25,
label: {
normal: {
show: true,
show: false,
position: 'top',
color: '#96bcf6'
}
......@@ -385,7 +332,7 @@
barWidth: 25,
label: {
normal: {
show: true,
show: false,
position: 'top',
color: '#96bcf6'
}
......@@ -447,7 +394,7 @@
barWidth: 13,
label: {
normal: {
show: true,
show: false,
position: 'right',
color: '#96bcf6'
}
......@@ -509,7 +456,7 @@
barWidth: 13,
label: {
normal: {
show: true,
show: false,
position: 'right',
color: '#96bcf6'
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment