Since selecting a legend category seems to change a graph node's dataIndex, I would like to be able to access a node's dataIndex by its ID.
Version & Environment [版本及环境]
ECharts version [ECharts 版本]: eCharts 4.2.0-rc1
Browser version [浏览器类型和版本]: Google Chrome 69
OS Version [操作系统类型和版本]: Mac OS X 10.14 Mojave
Expected behaviour [期望结果]
I have found a getNodeById function in the source code, which is the sort of thing I would like to have--find a node's dataIndex based on its ID. But I can't figure out a way to use this functionality in my code.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
One-line summary [问题简述]
Since selecting a legend category seems to change a graph node's
dataIndex
, I would like to be able to access a node'sdataIndex
by its ID.Version & Environment [版本及环境]
Expected behaviour [期望结果]
I have found a
getNodeById
function in the source code, which is the sort of thing I would like to have--find a node'sdataIndex
based on its ID. But I can't figure out a way to use this functionality in my code.ECharts option [ECharts配置项]
Other comments [其他信息]