You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "echarts-bot[bot] (via GitHub)" <gi...@apache.org> on 2023/02/16 13:16:35 UTC
[GitHub] [echarts] echarts-bot[bot] commented on issue #18282: [Bug] 想使用 click 监听toolbox中的datazoom菜单icon点击事件,无法监听
echarts-bot[bot] commented on issue #18282:
URL: https://github.com/apache/echarts/issues/18282#issuecomment-1433074454
@apptut 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. 🤗
<details><summary><b>TRANSLATED</b></summary><br>
**TITLE**
[Bug] I want to use click to monitor the click event of the datazoom menu icon in the toolbox, but I cannot monitor it
**BODY**
### Version
new
### Link to Minimal Reproduction
https://codesandbox.io/s/smoothed-line-chart-forked-xdt2pe
### Steps to Reproduce
I want to monitor the click event of the built-in button menu in the toolbox, but find no results. Is it a bug or a defect? Not even a click event.
```js
myChart.on('click', function (params) {
if (params.ponentType === 'toolbox' && params.name === 'dataZoom') {
// Handle the click event of the dataZoom icon here
console.log("dataZoom icon was clicked");
}
});
```
### Current Behavior
no response
### Expected Behavior
output
### Environment
```markdown
- OS:
-Browser:
- Framework:
```
### Any additional comments?
_No response_
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org