-
Notifications
You must be signed in to change notification settings - Fork 452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature]: Donut Chart Active Value Prop Feature Request #876
Comments
Just to be sure I understand it. a new legend component with the something like elements as text and when the user clicks on one of them the active prop on the DonutChart would change to what the users clicked? similar to what is on AreaChart right? |
Hi @abdelkd , thank you for reply. Yes. Similar to AreaChart. But this shouldn't only happen through LegendSlider. All it takes is an extra prop. In this way, it can be triggered via whatever input it wants to be triggered. |
yeah exactly. what I'm thinking about is new two props. |
@severinlandolt can I try working on this? |
Hey there! Thanks for the discussion. The donut chart has deliberately no Legend. Your proposal to add |
Thank you @severinlandolt . We are waiting.. |
Would absolutely love to have this feature. |
Would love this feature. I plan on putting the |
Since I've lost all my pc data, I did it again but with some changes. The legend is hidden by default unless you provide
I like your idea, I will be making the PR once @severinlandolt say his opinion about it |
@abdelkd Hi, happy to review, but cannot promise that it will get merged :) |
What problem does this feature solve?
Use Case and Context:
This feature would enable automatic activation of the corresponding data point in the DonutChart component when an item is clicked in the Legend component. Currently, clicking on an item in the Legend does not influence the DonutChart, which negatively impacts user experience.
Importance and Rationale:
The feature will enhance user interaction between data visualizations, making it easier for users to understand relationships within the data sets.
What does the proposed API look like?
This new activeValue prop would inform the DonutChart component about which data point should be active. Thus, when an item is clicked in the Legend component, updating this value will activate the corresponding data point in the DonutChart.
The working version of the activeValue prop should be as follows.
![image](https://private-user-images.githubusercontent.com/80177808/291959767-770f4ccf-a1c0-46df-a516-48b0cc91fd81.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTgyNjE2MzcsIm5iZiI6MTcxODI2MTMzNywicGF0aCI6Ii84MDE3NzgwOC8yOTE5NTk3NjctNzcwZjRjY2YtYTFjMC00NmRmLWE1MTYtNDhiMGNjOTFmZDgxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjEzVDA2NDg1N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE3MTFjNGU5YWE1OThkNzNiYThjOGFiYTZkMTZjMDlkZmI4Mjk1YmRjYTkyNjgzNjQxYzg0OWRlZjUwMTYwN2EmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.MfOK1407yk1ctc92NK9W8VH-nxSUaq37lNSBG5WI01c)
The text was updated successfully, but these errors were encountered: