Skip to content

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

@jiangdefu

Description

@jiangdefu

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,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

- OS:
- Browser:
- Framework:

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions