-
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.waiting-for: community
Description
Version
5.3.2
Link to Minimal Reproduction
No response
Steps to Reproduce
series:
series: [
{
type: "lines",
coordinateSystem: "amap",
effect: {
show: true,
period: 2, //箭头指向速度,值越小速度越快
trailLength: 0.1, //特效尾迹长度[0,1]值越大,尾迹越长重
symbol: "arrow", //箭头图标
symbolSize: 10, //图标大小
},
label: {
show: false
},
lineStyle: {
normal: {
color: '#1890ff',
width: 1, //尾迹线条宽度
opacity: 0.5, //尾迹线条透明度
curveness: 0.3, //尾迹线条曲直度
},
},
data: [ ],
},
{
type: "effectScatter",
coordinateSystem: "amap",
showEffectOn: "render",
zlevel: 1,
rippleEffect: {
period: 2,
scale: 5,
brushType: "stroke",
},
label: {
show:true,
color:'#fff',
formatter: "{b}",
position: "right",
},
emphasis: {
scale: true,
itemStyle: {
blurScope: 'global',
borderType: "solid",
borderColor: "rgba(252,4,4,1)",
borderWidth: 1,
color: 'rgba(255,0,0,1)',
},
label:{
fontSize: 13 ,
color: 'rgba(255,0,0,1)',
textBorderColor:'#fff',
textBorderWidth:'2'
}
},
hoverAnimation: true,
symbolSize: 10,
data: []dispatchAction:
/**
* @description 控制高亮跟提示
* @param {String} type (highlight:高亮(反:downplay);showTip:显示提示(反:hideTip))
* @param {Number} dataIndex 数据项的 index
* */
dispatchActionChart(type, dataIndex) {
this.chart.dispatchAction({
type: type,
seriesIndex: [0,1],
dataIndex: dataIndex,
});
},Current Behavior
制作地图航线图表时当 series.type="effectScatter " 时 dispatchAction 设置高亮正常
制作地图航线图表时当 series.type="lines" 时 dispatchAction 设置高亮无效
Expected Behavior
希望 dispatchAction 也可以设置 lines 的高亮
Environment
- OS:
- Browser:
- Framework:Any 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.waiting-for: community