-
Notifications
You must be signed in to change notification settings - Fork 19.8k
Closed as not planned
Labels
bugpendingWe are not sure about whether this is a bug/new feature.We are not sure about whether this is a bug/new feature.staleInactive for a long time. Will be closed in 7 days.Inactive for a long time. Will be closed in 7 days.
Description
Version
4.9.0
Link to Minimal Reproduction
No response
Steps to Reproduce
{
type: 'lines',
coordinateSystem: 'geo',
zlevel: 55,
symbol: ['none', 'none'],
lineStyle: {
normal: {
opacity: 1,
width: 10,
color: 'rgba(255,162,0,1)'
}
},
animation: false,
effect: {
show: true,
zlevel: 1111,
period: 4, //箭头指向速度,值越小速度越快
trailLength: 0.02, //特效尾迹长度[0,1]值越大,尾迹越长重
symbol: 'arrow', //箭头图标
symbolSize: 5, //图标大小
color: '#FFE269',
},
lineStyle: {
normal: {
color: 'rgba(255, 153, 0, 0.1)',
width: 0.5, //尾迹线条宽度
opacity: 1, //尾迹线条透明度
curveness: 0.3, //尾迹线条曲直度
},
},
emphasis: {
focus: 'series',
disabled: false,
label: {
position: 'middle',
backgroundColor: {
image: require('@/common/images/addressIconNew.png')
},
width: 150,
// height: 30,
show: true,
align: 'right',
verticalAlign: 'bottom',
shadowColor: '#fff',
shadowBlur: 1,
lineHeight: 18,
color: '#fff',
fontSize: 20,
formatter: function(params) {
let stra = params.data.name.slice(0, 8);
let strb = params.data.name.slice(8);
return params.data.name.length > 8 ? `{c|}{d|${stra}}\n{e|${strb}}` :
`{c|}{d{stra}}`
},
rich: {
}
},
},
label: {
// position: 'left',
normal: {
backgroundColor: {
image: require('@/common/images/dianback.png')
},
padding: [12, 65, 10, 5],
width: 144,
show: true,
align: 'right',
verticalAlign: 'bottom',
lineHeight: 18,
color: '#fff',
fontSize: 12,
formatter: function(params) {
let stra = params.data.name.slice(0, 8);
let strb = params.data.name.slice(8);
if (params.data.name == that.miningCheck) {
return params.data.name.length > 8 ?
`{c|}{d|${stra}}\n{e|${strb}}` : `{c|}{d|${stra}}`
}
return params.data.name.length > 8 ? `{c|}{a|${stra}}\n{b|${strb}}` :
`{c|}{a|${stra}}`
},
rich: {
a: {
align: 'left',
color: '#fff',
padding: [0, 15, 0, 7],
},
b: {
align: 'left',
color: '#fff',
padding: [0, 0, 0, 25]
},
c: {
width: 10,
height: 12,
backgroundColor: {
image: require('@/common/images/addIcon.png')
},
align: 'center',
verticalAlign: 'center'
},
d: {
align: 'left',
color: '#FF9900',
padding: [0, 15, 0, 7]
},
e: {
align: 'left',
color: '#FF9900',
padding: [0, 0, 0, 25]
},
}
},
},
data: this.chartsData.map(c => {
return {
name: c.name,
coords: [
c.coords[0], c.coords[1]
]
}
}).filter(c => c.name !== '北京')
},
Current Behavior
当前type为lines的label文字、背景图堆叠严重
Expected Behavior
type为lines的label文字、背景图不堆叠
Environment
- OS:
- Browser:
- Framework:vue2.2Any additional comments?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugpendingWe are not sure about whether this is a bug/new feature.We are not sure about whether this is a bug/new feature.staleInactive for a long time. Will be closed in 7 days.Inactive for a long time. Will be closed in 7 days.