umutt-turboard opened a new pull request, #20827:
URL: https://github.com/apache/echarts/pull/20827

   
   ## Brief Information
   
   This pull request is in the type of:
   
   - [ x] bug fixing
   - [ ] new feature
   - [ ] others
   
   
   
   ### What does this PR do?
   
   by default each charts creates legend by series. pie and funnel chart 
creates legend data by category names instead each serie. for custom chart 
added a condition to use legend same pie charts instead default serie based 
legend.
   
   
   
   ### Fixed issues
   
   - #20813 
   
   
   ## Details
   
   ### Before: What was the problem?
   
   I couldn't change the default behaviour of legend
   
   ![Screenshot from 2025-03-14 
12-20-30](https://github.com/user-attachments/assets/4dd9c088-330c-4b5e-be19-7d21dbd4145e)
   
   
   
   
   ### After: How does it behave after the fixing?
   
   with using useLegendByCategory prop I can use legend like pie charts, 
depends on category name with one series.
   
   ![Screenshot from 2025-03-14 
12-30-11](https://github.com/user-attachments/assets/9674d3e8-8b18-4d76-aad4-95cb6415d455)
   
   
   
   
   ## Document Info
   
   One of the following should be checked.
   
   - [ ] This PR doesn't relate to document changes
   - [x ] The document should be updated later
   - [ ] The document changes have been made in apache/echarts-doc#xxx
   
   
   
   ## Misc
   
   ### ZRender Changes
   
   - [ ] This PR depends on ZRender changes (ecomfe/zrender#xxx).
   
   ### Related test cases or examples to use the new APIs
   
   N.A.
   
   
   
   ## Others
   
   ### Merging options
   
   - [ ] Please squash the commits into a single one when merging.
   
   ### Other information
   


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