You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2022/06/17 07:55:14 UTC

[GitHub] [echarts] Ovilia commented on issue #17238: [Feature] 通过data来获取 dataIndex

Ovilia commented on issue #17238:
URL: https://github.com/apache/echarts/issues/17238#issuecomment-1158600236

   > 在页面上显示两个echarts图表,使用的是同一个套数据;当一个图表中点击之后,另一个图表中对应的元素需要高亮之类的。 
   
   这个需求的常见解法是 [`connect`](https://echarts.apache.org/zh/api.html#echarts.connect),test 下也有[一些例子](https://github.com/apache/echarts/tree/master/test),可以搜 `connect`。
   
   按你说的 `dispatchAction` 也是可以的,点击事件本身应该是带有 `dataIndex` 的,如果没有的话提供一下例子吧。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org