Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hairuiVR opened this issue Apr 29, 2024 · 3 comments
Open

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

hairuiVR opened this issue Apr 29, 2024 · 3 comments
Labels
bug pending We are not sure about whether this is a bug/new feature.

Comments

@hairuiVR
Copy link

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 hairuiVR added the bug label Apr 29, 2024
@echarts-bot echarts-bot bot added the pending We are not sure about whether this is a bug/new feature. label Apr 29, 2024
@echarts-bot echarts-bot bot changed the title 手机端 使用ecahrts contextmenu 点击事件无法获取[Bug] [Bug] 手机端 使用ecahrts contextmenu 点击事件无法获取 Apr 29, 2024
Copy link

echarts-bot bot commented Apr 29, 2024

@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 点击事件无法获取

@helgasoft
Copy link

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

@hairuiVR
Copy link
Author

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug pending We are not sure about whether this is a bug/new feature.
Projects
None yet
Development

No branches or pull requests

2 participants