echarts-gl
echarts-gl copied to clipboard
globe点击事件不触发
myChart.getZr().on("click", function (clickparams) { console.log(clickparams); });
虽然myChart.getZr()可以触发,但是无法获取节点信息,尝试了多个echarts-gl版本,click事件都不能触发。
有什么解决方案吗
the node information cannot be obtained
What is the "node information" ? Do you have sample code? The globe itself does not respond to clicks, it's a coordinate system with a pretty face. Clicks are for series - Demo Code
同问
versions: echarts 5.2.0 , echarts-gl 2.0.8
registered events: charts.getZr().on('click', function (clickparams) {}) ===> be of use
charts.on('click', async (params) => {})===> useless
What's the solution?
I want to click on a piece of the map and get data
simple click works for both scatter3D and map3D - Demo