apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.48k stars 19.62k forks source link

[Feature] Change grafana variable by Event Handling On Double Click? #19115

Open vperilla95 opened 1 year ago

vperilla95 commented 1 year ago

What problem does this feature solve?

Change grafana variable by Event Handling On Double Click?

I need get relationship echarts apache with responsive double click , I need change value of variable grafana in function to label information or tooltip information from pie chart (params)

imagen

How do I get?

echartsInstance.off("dblclick"); echartsInstance.on("dblclick", (params) => { echartsInstance.resize(); });

What does the proposed API look like?

With the click change variable grafana and update echart

Ovilia commented 1 year ago

Hi, please add event listener on the container. You don't need an extra ECharts event for this.