echarts icon indicating copy to clipboard operation
echarts copied to clipboard

Echarts 3D地图+scatter3D +geo3D+echarts-gl ,点击事件失效。获取不到点击部分的数据名称

Open mryangsen opened this issue 3 years ago • 2 comments

Version

"echarts-gl": "^2.0.9", "echarts": "^5.3.1",

Link to Minimal Reproduction

No response

Steps to Reproduce

Echarts 3D地图+scatter3D +geo3D+echarts-gl ,点击事件失效。获取不到点击部分的数据名称

Current Behavior

  1. Echarts 3D地图+scatter3D +geo3D+echarts-gl ,点击事件失效。获取不到点击部分的数据名称 // mapChart.on('click', function (params) { 点击无效果 提示 echarts.js?1be7:834 model or view can not be found by params mapChart.getZr().on('click', function (params) { console.log('getZr().on', params) })

Expected Behavior

  1. Echarts 3D地图+scatter3D +geo3D+echarts-gl ,点击事件失效。获取不到点击部分的数据名称 // mapChart.on('click', function (params) { 点击无效果 提示 echarts.js?1be7:834 model or view can not be found by params mapChart.getZr().on('click', function (params) { console.log('getZr().on', params) })

Environment

修复此问题。点击事件能获取到点击部分数据

Any additional comments?

No response

mryangsen avatar May 09 '22 10:05 mryangsen

@mryangsen It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗

TRANSLATED

TITLE

Echarts 3D map + scatter3D + geo3D + echarts-gl, click event invalidation. You can't get the data name of the click section

BODY

Version

"echarts-gl": "^2.0.9", "echarts": "^5.3.1",

Link to Minimal Reproduction

No response

Steps to Reproduce

Echarts 3D map + scatter3D + geo3D + echarts-gl, click event invalidation. You can't get the data name of the click section

Current Behavior

  1. Echarts 3D map + scatter3D + geo3D + echarts-gl, click event invalidated. You can't get the data name of the click section mapChart.on('click', function (params) { click no effect prompt echarts.js?1be7:834 model or view can not be found by params mapChart.getZr().on('click', function (params) { console.log('getZr().on', params) })

Expected Behavior

  1. Echarts 3D map + scatter3D + geo3D + echarts-gl, click event invalidated. You can't get the data name of the click section mapChart.on('click', function (params) { click no effect prompt echarts.js?1be7:834 model or view can not be found by params mapChart.getZr().on('click', function (params) { console.log('getZr().on', params) })

Environment

Fix this issue. Click events can get some data for clicks

Any additional comments?

No response

echarts-bot[bot] avatar May 09 '22 10:05 echarts-bot[bot]

试一下option里不用geo3D,而是用series:[{type:'map3D',}],虽然不知道为什么,但是解决了

Hermit072 avatar Aug 10 '22 09:08 Hermit072