You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2022/02/13 10:22:19 UTC
[GitHub] [echarts] RavalikaP opened a new issue #16500: Mouseover on axis labels are not working
RavalikaP opened a new issue #16500:
URL: https://github.com/apache/echarts/issues/16500
### Version
5.2.2
### Link to Minimal Reproduction
_No response_
### Steps to Reproduce
1. Create one chart with axis
2. Register mouse over event on axis labels
3. event is not getting triggered
myChart.on('mouseover', 'xAxis.axisLabel',(params) => {
console.log(params)
alert();
});
### Current Behavior
Axis label mouse over event is not triggering
### Expected Behavior
Axis label mouse over event has to trigger
### Environment
```markdown
- OS:
- Browser:
- Framework:
```
### Any additional comments?
_No response_
--
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
[GitHub] [echarts] plainheart edited a comment on issue #16500: Mouseover on axis labels are not working
Posted by GitBox <gi...@apache.org>.
plainheart edited a comment on issue #16500:
URL: https://github.com/apache/echarts/issues/16500#issuecomment-1038180419
You need to set [`xAxis.triggerEvent`](https://echarts.apache.org/en/option.html#xAxis.triggerEvent) as `true`. And here you need to use `event.targetType` to determine if it's triggered by axis labels.
```js
chart.on('click', 'xAxis', function(e) {
// if there are multiple x axes
// you may use other event params to determine if this event is triggered by the expected axis.
// only handle the events triggered by the label.
if (e.targetType === 'axisLabel') {
// do something
}
});
```
--
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
[GitHub] [echarts] plainheart commented on issue #16500: Mouseover on axis labels are not working
Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #16500:
URL: https://github.com/apache/echarts/issues/16500#issuecomment-1038180419
You need to set [`xAxis.triggerEvent`](https://echarts.apache.org/en/option.html#xAxis.triggerEvent) as `true`.
--
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
[GitHub] [echarts] plainheart edited a comment on issue #16500: Mouseover on axis labels are not working
Posted by GitBox <gi...@apache.org>.
plainheart edited a comment on issue #16500:
URL: https://github.com/apache/echarts/issues/16500#issuecomment-1038180419
You need to set [`xAxis.triggerEvent`](https://echarts.apache.org/en/option.html#xAxis.triggerEvent) as `true`. And here you need to use `event.targetType` to determine if it's triggered by axis labels.
```js
chart.on('click', 'xAxis', function(e) {
// if there are multiple x axes
// you may use other event params to determine if this event is triggered by the expected axis.
// only handle the events triggered by the label.
if (e.targetType === 'axisLabel') {
// do something
}
});
```
--
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
[GitHub] [echarts] plainheart closed issue #16500: Mouseover on axis labels are not working
Posted by GitBox <gi...@apache.org>.
plainheart closed issue #16500:
URL: https://github.com/apache/echarts/issues/16500
--
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
[GitHub] [echarts] plainheart commented on issue #16500: Mouseover on axis labels are not working
Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #16500:
URL: https://github.com/apache/echarts/issues/16500#issuecomment-1038180419
You need to set [`xAxis.triggerEvent`](https://echarts.apache.org/en/option.html#xAxis.triggerEvent) as `true`.
--
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