apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.58k stars 19.62k forks source link

no events are trigger when hover on the area chart and stacked area chart #19811

Closed karthik-noveau closed 7 months ago

karthik-noveau commented 7 months ago

Version

5.5.0

Link to Minimal Reproduction

https://github.com/karthik-noveau/e-charts

Steps to Reproduce

  1. clone this repository in local
  2. npm install
  3. npm start
  4. hover on area chart
  5. no events are triggered

Current Behavior

when hover on the area chart and stacked area chart , no events are triggered. but events are triggered in area and stacked area chart when hover on the circle on each area item of top of the area chart

image

Expected Behavior

I already raised the ticket for area chart hover issue, so you given one solution . but, after add the "triggerLineEvents" in area and stacked area chart, no events are triggered as your suggestion used I added in my code , you can check

I don't want trigger events in lines, i need to trigger the events on area chart and stacked area chart part

Here the problem is , you are giving the events for circle of top of each area chart part only , not for area chart part because my requirement is when hover on the area chart part, pattern should apply

so if you give the trigger events for area chart part, we can apply the pattern on hover by hover events

this is the previous raised ticket: https://github.com/apache/echarts/issues/19736

image

Environment

- OS: macOs 
- Browser: chrome
- Framework: React Js

Any additional comments?

No response

plainheart commented 7 months ago

I didn't see you added the triggerLineEvent option to the chart options from your repo.

plainheart commented 7 months ago

Here is a demo.

I don't want trigger events in lines, i need to trigger the events on area chart and stacked area chart part

triggerLineEvent doesn't only enable events for the line but also the area.