Skip to content

Bubble Scale/Marker Size Legend #3505

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

Closed
knoam opened this issue Dec 8, 2021 · 3 comments
Closed

Bubble Scale/Marker Size Legend #3505

knoam opened this issue Dec 8, 2021 · 3 comments

Comments

@knoam
Copy link

knoam commented Dec 8, 2021

Is there some way to generate a legend for bubble size in plotly express? I realize you could do this by doing color='size_col', size='size_col' for categorical columns, but it would be good to have bubble size as a continuous variable that can be defined separately from color variable.

Somethine like this (copied from here)
image

@nicolaskruchten
Copy link
Contributor

There's no feature for this at the moment, and it would likely have to be implemented in Plotly.js first before being usable in Plotly.py/Plotly Express. See the following related issue:

@gvwilson
Copy link
Contributor

Hi - we are trying to tidy up the stale issues and PRs in Plotly's public repositories so that we can focus on things that are still important to our community. Since this one has been sitting for several years, I'm going to close it; if it is still a concern, please add a comment letting us know what recent version of our software you've checked it with so that I can reopen it and add it to our backlog. Thanks for your help - @gvwilson

@cbadams2
Copy link

I would advocate for this to be reopened, as the issue remains open in Plotly.js (plotly/plotly.js#5099). Given that several of the scatter functions in Plotly take size (and color) as arguments to determine the visual appearance of scatter points, it seems logical to keep the request for a legend to explain the visual appearance open (and abreast of the progress in Plotly.js).

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

No branches or pull requests

4 participants