-
Notifications
You must be signed in to change notification settings - Fork 19.8k
如何在多个关联的grid中分别单独显示tooltip #13630
Copy link
Copy link
Closed as not planned
Labels
new-featurestaleInactive 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
4.9.0
Steps to reproduce
1)连接两个echart图表(都是scatter类型,横轴是time类型)
2)关联这两个echart实例
3) 在option下设置tooltip
4)鼠标移动到数据点处,两个图表一起显示tooltip
What is expected?
我们echart设置联动的目的是要拖动datazoom,其他echart有联动的效果,但是tooltip希望能单独显示,鼠标移动到哪个点,哪个点就显示tooltip。
What is actually happening?
多个tooltip会同时显示,不能单独显示。
谢谢
tooltip设置,其中axis , item都分别设置过
我在series和series下的data里面都设置过tooltip,都不会显示tooltip,formatter函数也不会被调用。可是文档里面是说可以设置。
请问有什么解决方法。这个可能不是bug,但是不知道如何解决。谢谢
{
show: true,
//触发点
triggerOn: 'click',
// trigger: 'axis', //axis , item
backgroundColor: 'rgba(0,15,78,0.6)',
borderColor: '#00afff',
borderWidth: 1,
borderRadius: 0,
color: 'red',
//会出现间断线,不适合
// axisPointer: {
// type: 'cross'
// },
formatter: function (value) {
console.log('formatter is called', value)
return "123456"
},
// formatter: '{b0}: {c0}<br />{b1}: {c1}',
textStyle: {
color: "#fff",
fontSize: 13,
align: 'left'
},
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
new-featurestaleInactive for a long time. Will be closed in 7 days.Inactive for a long time. Will be closed in 7 days.waiting-for: community