Skip to content

Plots tab legend by default shows all possible values for the category used to color by #11024

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

Open
zeynepkaragoz opened this issue Sep 26, 2024 · 2 comments · May be fixed by cBioPortal/cbioportal-frontend#5130

Comments

@zeynepkaragoz
Copy link
Contributor

This happens when user colors by a clinical attribute in the plots tab and filters down categories. If I select only a few of the metastatic sites on the vertical axis, the legend does not update and still shows all possible values and colors. It is very difficult to match the colors on the plot to the colors on the legend this way. (see example, you need to use filter categories option)

image

Ideally only colors present in the plots should be included in the legend. Alternatively, the relevant entries in the legend could be highlighted by default if they are present in the plot.

@alisman
Copy link
Contributor

alisman commented Apr 3, 2025

@zeynepkaragoz
Copy link
Contributor Author

LGTM, thanks for working on this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants