apache / apache/echarts

[Bug] Horizontal bar chart triggerEvent:true, the mouse gesture effect is invalid, and the binding event is not triggered.

Open
#19,680 1 comment 1 reaction 0 assignees View on GitHub
bug en topic: axis topic: label
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

5.5.0

### Link to Minimal Reproduction

none

### Steps to Reproduce

```
option = {
title: {
text: 'World Population'
},
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'shadow'
}
},
legend: {},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
xAxis: {
type: 'value',
boundaryGap: [0, 0.01]
},
yAxis: {
triggerEvent:true,
type: 'category',
axisLabel:{
margin:6,
width:140,
overflow:'truncate',
formatter:(value,index)=>{
return `${value}`
}
},
data: ['Brazil', 'IndonesiaIndonesiaIndonesiaIndonesia', 'USA', 'India', 'China', 'World'],

},
series: [
{
name: '2011',
type: 'bar',
data: [18203, 23489, 29034, 104970, 131744, 630230]
}
]
};
```

use this options create eCharts Horizontal bar in [Official Demo Site](https://echarts.apache.org/examples/zh/editor.html?c=bar-y-category),then yAxis mouse effect is invalid and the binding event is not triggered

### Current Behavior

the mouse gesture effect is invalid, and the binding event is not triggered.

### Expected Behavior

the mouse gesture effectand the binding event is triggered.

### Environment

```markdown
- OS:
- Browser:
- Framework:
```

### Any additional comments?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.