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

   ### What problem does this feature solve?
   
   I am implementing a charting framework that should support interactivity 
between charts. For example, if a user selects (clicks) a specific value on a 
bar chart, the action should result in that value being emphasized, and any 
other chart on a dashboard that relies on a series that is itself based on the 
selected value (though the value might be groupped/displayed differently), 
should empahsise the corresponding portion of the series.
   
   The image below shows two charts, a bad chart and a pie chart, that both 
rely on a series of values. The bar charts displays the values stacked by 
category against months, the pie chart sums the categories and shows a 
percentage total.
   
   
![image](https://github.com/apache/echarts/assets/212397/ba719d6e-43a1-4cec-a823-3ddd2480a869)
   
   Selecting a specific value on the bar chart should emphasize that bar 
component, as well as emphasize the corresponding portion of the series on the 
pie.
   
   
![image](https://github.com/apache/echarts/assets/212397/3c3925fa-80e0-4fc1-9c62-cd1cdc5af8da)
   
   This should work when multiple values are selected also, as shown below.
   
   
![image](https://github.com/apache/echarts/assets/212397/c916a247-8b5c-4349-bfe8-1ed1abec6a94)
   
   Note: It sholud work analogously on a bar chart.
   
   ### What does the proposed API look like?
   
   ```typescript
   let options = {
     ...
     series: [
       {
         data: [100, 50, 50],
         emphasiedData: [15, 0, 0], // New: This is the data that will be 
emphasized against the original data above
       }
     ]
   }
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to