Fatima-Sa1eem opened a new issue, #21080:
URL: https://github.com/apache/echarts/issues/21080

   ### What problem does this feature solve?
   
   In multilevel drilldown bar charts, there is currently no built-in way to 
maintain an accurate and dynamic legend that reflects the categories at each 
drill level.
   
   For example, when clicking a bar to drill down, the new chart renders 
correctly, but the legend either:
   
   disappears, shows only a static category (e.g. one series.name), or needs to 
be manually reconstructed using series-per-category (which breaks drilldown 
event handling and transitions).
   
   This limits usability.
   
   A dynamic legend would let users instantly identify what each bar color 
represents without relying solely on axis labels or tooltips.
   
   Right now, I’m using tooltips and axis labels to show this, but the absence 
of a clear, auto-updating legend degrades UX — especially for data-heavy 
dashboards
   
   ### What does the proposed API look like?
   
   legend: {
     type: 'drilldown',           // new type: behaves like 'scroll' or 'plain'
     followData: true,            // legend auto-populates from current 
series.data[].name
     matchItemColor: true,        // use itemStyle.color from series.data[i]
     textStyle: { fontSize: 14 },
   }
   


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