You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2022/09/18 09:12:13 UTC

[GitHub] [echarts] gabrielnemeth opened a new issue, #17666: [Feature] display the data from overlapping polygons on the map in tooltip

gabrielnemeth opened a new issue, #17666:
URL: https://github.com/apache/echarts/issues/17666

   ### What problem does this feature solve?
   
   Sometimes it makes sense to display data from polygons that are covered by other polygons.
   
   ![image](https://user-images.githubusercontent.com/11211316/190894453-ea040173-c07f-4ae5-bcc8-999a9e2b6606.png)
   
   In the example above I wanted to display data in the tooltip for the covered polygon as well since the user is pointing to a place which is intersected by both of the polygons. The problem is I get only the hovered items data into the formatter tooltip callback.
   
   Here is a link for a simple example: https://codepen.io/gabriel-n-meth/pen/PoemodO
   
   
   ### What does the proposed API look like?
   
   Example tooltip option:
   
   ```
   tooltip: {
      trigger: 'item',
      passthrough: true
   }
   ```
   
   By setting the `passThrough` flag to `true`, we should get a data array of all of the polygons the user is pointing to.


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