New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
echarts中实现多个tooltip存在 #11382
Comments
目前不支持,之前也有人提出这个需求。需要讨论下是不是要做这个功能,如果做的话,应该会进 5.0 的大版本需求。 |
@joinwen 请提供一下具体的需求,为什么需要多个 tooltip,使用场景如何,期望的 option 是什么样的? |
这个有点脱离了我们对 tooltip 的定义了(单例,不能一直存在),现在有个长期存在的配置主要是为了移动端的交互 可以试下外部扩展这个组件,这些 UI 通过 dom 来画,然后使用 https://echarts.apache.org/zh/api.html#echartsInstance.convertToPixel 和 https://echarts.apache.org/zh/api.html#echartsInstance.convertFromPixel 来得到相应的坐标和数据 |
我觉得 tooltip 的定义并不包括「单例」,tooltip 应该是用来可交互式地展现数据细节的组件,如果用户能提供合理的多 tooltip 场景,还是值得讨论的。 |
不太清楚啊,产品要做的 |
@cr-ruirui 那么问一下产品这样设计的目的是什么,效果图是怎么样的? |
怎么这么像……所以你和 @joinwen 是同事? |
不会啊,请问下怎么实现呢 |
@Ovilia 多坐标系,hover的时候不同坐标系上的线图或者柱状图显示对应的tooltip。这是产品的需求。 |
@rascaler 我也要做这种交易图表,你那边有方案了吗? |
@Devicegt |
@rascaler 我的单个实例用的 graphic 做,暂时还没发现有问题,只是感觉性能上可能不太高,可能更容易卡顿. |
希望能实现多个tooltip 的功能, trigger为'axis'时, 点击一次固定保留一条竖线, 再次点击则再保留一条竖线,以实现数据上的对比 |
This could be achieved by |
我可以提供一个我遇到的需求场景:地图+足迹,需要同时显示多个,且需要默认为展开状态 |
展示多tooltip, 5.3版本支持了吗 |
A workaround for multiple tooltips with select and graphic - Demo Code |
echarts,能够实现
1.多个tooltip共存吗
2.通过点击事件增加或者减少tooltip
The text was updated successfully, but these errors were encountered: