I have a bug to report;
use bmap, when click the visualMap,visuaMap's pieces disappear and will click through the bmap,
pls check the option bellow
option = {
backgroundColor: '#404a59',
title: {
text: '朴姓人口迁徙图',
left: 'center',
textStyle: {
color: '#fff'
}
},
visualMap: {
type: 'piecewise',
zlevel: 5,
pieces: [
{ min: 1500, color: '#ff0000' },
{ min: 1000, max: 1500, color: '#ff6c00' },
{ min: 500, max: 1000, color: '#ffcc00' },
{ min: 300, max: 500, color: '#0036ff' },
{ min: 100, max: 300, color: '#00e8fd' },
{ min: 0, max: 100, color: '#fff' }
],
seriesIndex: 1,
// dimension: 0,
textStyle: {
color: '#fff'
},
bottom: 60,
left: 50,
itemWidth: 30,
itemHeight: 20
},
bmap: {
center: [113.39942, 22.522314],
zoom: 12,
roam: true,
mapStyle: mapStyle
},
series: [{
name: '地点',
type: 'effectScatter',
coordinateSystem: 'bmap',
zlevel: 5,
rippleEffect: {
brushType: 'stroke'
},
label: {
emphasis: {
show: true,
position: 'right',
formatter: '{b}'
}
},
symbolSize: 2,
showEffectOn: 'render',
itemStyle: {
normal: {
color: '#46bee9'
}
},
data: data[0].citys
}, {
name: '线路',
type: 'lines',
coordinateSystem: 'bmap',
zlevel: 5,
large: true,
effect: {
show: true,
constantSpeed: 30,
symbol: 'pin',
symbolSize: 3,
trailLength: 0,
},
lineStyle: {
normal: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
offset: 0,
color: '#58B3CC'
}, {
offset: 1,
color: '#F58158'
}], false),
width: 1,
opacity: 0.9,
curveness: 0.1
}
},
data: data[0].xiaolan
}]
};
hope you could solve this issue ASAP,thks.
chrome: 70.0.3538.102
echarts: 4.0
I have a bug to report;
use bmap, when click the visualMap,visuaMap's pieces disappear and will click through the bmap,
pls check the option bellow
option = {
backgroundColor: '#404a59',
title: {
text: '朴姓人口迁徙图',
left: 'center',
textStyle: {
color: '#fff'
}
},
visualMap: {
type: 'piecewise',
zlevel: 5,
pieces: [
{ min: 1500, color: '#ff0000' },
{ min: 1000, max: 1500, color: '#ff6c00' },
{ min: 500, max: 1000, color: '#ffcc00' },
{ min: 300, max: 500, color: '#0036ff' },
{ min: 100, max: 300, color: '#00e8fd' },
{ min: 0, max: 100, color: '#fff' }
],
seriesIndex: 1,
// dimension: 0,
textStyle: {
color: '#fff'
},
bottom: 60,
left: 50,
itemWidth: 30,
itemHeight: 20
},
bmap: {
center: [113.39942, 22.522314],
zoom: 12,
roam: true,
mapStyle: mapStyle
},
series: [{
name: '地点',
type: 'effectScatter',
coordinateSystem: 'bmap',
zlevel: 5,
rippleEffect: {
brushType: 'stroke'
},
label: {
emphasis: {
show: true,
position: 'right',
formatter: '{b}'
}
},
symbolSize: 2,
showEffectOn: 'render',
itemStyle: {
normal: {
color: '#46bee9'
}
},
data: data[0].citys
}, {
name: '线路',
type: 'lines',
coordinateSystem: 'bmap',
zlevel: 5,
large: true,
effect: {
show: true,
constantSpeed: 30,
symbol: 'pin',
symbolSize: 3,
trailLength: 0,
},
lineStyle: {
normal: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
offset: 0,
color: '#58B3CC'
}, {
offset: 1,
color: '#F58158'
}], false),
width: 1,
opacity: 0.9,
curveness: 0.1
}
},
data: data[0].xiaolan
}]
};
hope you could solve this issue ASAP,thks.
chrome: 70.0.3538.102
echarts: 4.0