echarts [Bug] in stacked area chart, emphasis.focus series work strange

0h4hbjxa  于 2022-12-31  发布在  Echarts
关注(0)|答案(1)|浏览(109)

Version

5.2.2

https://codepen.io/Atlas-lili/pen/yLzrwaw

Steps to Reproduce

  1. creat a stacked area chart and set emphasis.focus to series
{
  series: [
    {
      name: 'Email',
      type: 'line',
      stack: 'Total',
      areaStyle: {},
      emphasis: {
        focus: 'series'
      },
      data: [120, 0, 0, 0, 0, 0, 0]
    },
    {
      name: 'Union Ads',
      type: 'line',
      stack: 'Total',
      areaStyle: {},
      emphasis: {
        focus: 'series'
      },
      data: [0, 120, 0, 0, 0, 0, 0]
    },
    {
      name: 'Video Ads',
      type: 'line',
      stack: 'Total',
      areaStyle: {},
      emphasis: {
        focus: 'series'
      },
      data: [0, 0, 120, 0, 0, 0, 0]
    },
  ]
}
  1. Move the mouse near the area where the polylines coincide

Current Behavior

Occasionally, all series areas are highlighted

Expected Behavior

I think that only the series to which the mouse hover area belongs should be highlighted

Environment

- OS: macOS Monterey
- Browser: Chrome 97.0.4692.71

Any additional comments?

No response

相关问题