Add Rapid Plot Legend Item Selection #551
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I propose a new method for selecting items in Plot Legend, addressing the following issue:
Currently, in the legend, users can use mouse click to show or hide individual items.
However, when there are many items and a user wants to view just one, they need to hide to the others, which requires numerous mouse clicks.
Repeating this process can be very tiring for users.
Now, there is a quicker and simpler way for users to select just one item, and I have also added a method for them to view all items again.
Additionally, I have added methods to show or hide multiple items.
[New Actions]
Selecting a single item in the plot legend and automatically deselecting all others
Selecting all items in the plot legend
Selecting multiple items
Deselecting multiple items
[Demo: Selecting a single item and deselecting all others / Selecting all items]
![select_the_item_and_deselect_all_others](https://private-user-images.githubusercontent.com/59576365/296407855-575d2c09-60f5-4a0f-a1da-f05b93e2810e.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNjIzOTIsIm5iZiI6MTczOTE2MjA5MiwicGF0aCI6Ii81OTU3NjM2NS8yOTY0MDc4NTUtNTc1ZDJjMDktNjBmNS00YTBmLWExZGEtZjA1YjkzZTI4MTBlLmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDA0MzQ1MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBiM2M5MjJiOGQ2MTBkODdmN2U0ZTAxN2EyZjk1MGU2ZmFiNTdlODBhNGUyYmM2NmI5MmY3N2M1ZDhlYjZhYzAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.1_5O-kjmEZPcYpW9fqJn69emLu1roBsNyqGdQwZkkVM)
[Demo: Selecting/Deselecting multiple items]
![multiple_selection](https://private-user-images.githubusercontent.com/59576365/296404466-552caee2-19ff-4153-a516-bc9b65502bb6.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNjIzOTIsIm5iZiI6MTczOTE2MjA5MiwicGF0aCI6Ii81OTU3NjM2NS8yOTY0MDQ0NjYtNTUyY2FlZTItMTlmZi00MTUzLWE1MTYtYmM5YjY1NTAyYmI2LmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDA0MzQ1MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE5OWY2N2UzNmE0ZmM5MmVkZGZhMDg3Mzk4MzAwYmUzZmE2N2JlYmFjNzA4YThiYzE1NDhjZjllMzAwY2RiNDQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.NP03oHpvAJlQ6Gmq4nDti7DJ30qvCVmZ0yrNl4fmey0)