echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Bug] 手机端 使用ecahrts contextmenu 点击事件无法获取

Open hairuiVR opened this issue 1 year ago • 3 comments

Version

4.8.0

Link to Minimal Reproduction

vscode

Steps to Reproduce

var myChart = echarts.init(dom, null, { renderer: 'canvas', useDirtyRect: false }); myChart.on('contextmenu',params => {})

Current Behavior

监听contextmenu

Expected Behavior

获取点击事件

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

hairuiVR avatar Apr 29 '24 02:04 hairuiVR

@hairuiVR 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

[Bug] 手机端 使用ecahrts contextmenu 点击事件无法获取

echarts-bot[bot] avatar Apr 29 '24 02:04 echarts-bot[bot]

contextmenu event does not exist in ECharts, but zRender has it - Demo

helgasoft avatar Apr 29 '24 05:04 helgasoft

contextmenu event does not exist in ECharts, but zRender has it - Demo

你好这个确实可以,不过不是我想要,现在电脑端监听contextmenu 获取的数据是tooltip里面的数值,我现在需要的也是选中的toolstip里面的数据,然后那这个数据去下钻,现在这个数据打印的是一些坐标,能不能帮忙研究一下,多谢了

hairuiVR avatar Apr 29 '24 06:04 hairuiVR