You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "karthik-noveau (via GitHub)" <gi...@apache.org> on 2024/04/17 13:11:28 UTC

[I] how to handle the separate events inside stacked area chart [echarts]

karthik-noveau opened a new issue, #19844:
URL: https://github.com/apache/echarts/issues/19844

   ### Version
   
   5.5.0
   
   ### Link to Minimal Reproduction
   
   https://github.com/karthik-noveau/e-charts
   
   ### Steps to Reproduce
   
   1. npm install
   2. npm start
   3. hover on the stacked area chart
   
   ### Current Behavior
   
   events are triggering for both line and area inside the stacked area chart on mouseOver
   
   ### Expected Behavior
   
   my need is events should trigger only for area part when i mouseOver
   event should not trigger for line 
   
   ### Environment
   
   ```markdown
   - OS: window
   - Browser:chrome
   - Framework: React js
   ```
   
   
   ### 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.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


Re: [I] how to handle the separate events inside stacked area chart [echarts]

Posted by "plainheart (via GitHub)" <gi...@apache.org>.
plainheart closed issue #19844: how to handle the separate events inside stacked area chart
URL: https://github.com/apache/echarts/issues/19844


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


Re: [I] how to handle the separate events inside stacked area chart [echarts]

Posted by "plainheart (via GitHub)" <gi...@apache.org>.
plainheart commented on issue #19844:
URL: https://github.com/apache/echarts/issues/19844#issuecomment-2062867470

   ```js
   myChart.on('mouseover', e => {
     if (e.componentSubType === 'line' && e.event.target.type === 'ec-polygon') {
       // is hovering on the area polygon
     }
   })
   ```


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