echarts-gl icon indicating copy to clipboard operation
echarts-gl copied to clipboard

globe点击事件不触发

Open Siwuji opened this issue 2 years ago • 5 comments

myChart.getZr().on("click", function (clickparams) { console.log(clickparams); }); 虽然myChart.getZr()可以触发,但是无法获取节点信息,尝试了多个echarts-gl版本,click事件都不能触发。

Siwuji avatar Feb 02 '23 02:02 Siwuji

有什么解决方案吗

wx-hh avatar Apr 17 '23 09:04 wx-hh

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

helgasoft avatar May 09 '23 06:05 helgasoft

同问

AlwaysMing avatar May 13 '23 09:05 AlwaysMing

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?

image

I want to click on a piece of the map and get data

zhuyujie068 avatar May 22 '24 08:05 zhuyujie068

simple click works for both scatter3D and map3D - Demo

helgasoft avatar May 22 '24 23:05 helgasoft