Skip to content

Feature Request: Size Legend Bubble Chart #705

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
mviertel opened this issue Sep 2, 2016 · 5 comments
Open

Feature Request: Size Legend Bubble Chart #705

mviertel opened this issue Sep 2, 2016 · 5 comments

Comments

@mviertel
Copy link

mviertel commented Sep 2, 2016

I am not sure whether this is the right forum to address the issue. Nevertheless, after quite some searching, I was unsuccessful to figure out a way to add a legend to a bubble chart, that reflects information on the bubble size in a chart like the one below.

library(plotly)
d <- diamonds[sample(nrow(diamonds), 1000), ]
plot_ly(d, x = carat, y = price, size = carat, mode = "markers")

I am looking for something a similar chart legend like in the picture attached.

If I am off topic here, please don´t hesitate to close the issue - a hint to a solution would be highly appreciated, though.

Best
Michael

image source: https://visage.co/data-visualization-101-bubble-charts/

screen-shot-2015-02-04-at-4 41 48-pm

@mviertel
Copy link
Author

Can I expect anything here?

@cpsievert
Copy link
Collaborator

Great idea! plotly.js won't support this at the moment, but it should soon!

@mviertel
Copy link
Author

Not sure how you are planning to implement this, but it would for sure be sweet if this feature were available for scatter plots on maps, too.

@ibhalin
Copy link

ibhalin commented Nov 5, 2020

I'm bumping this because you just can't read bubble charts without bubble size in the legend !

@zhangguy
Copy link

Please consider adding a function to plot a second legend for the marker size, as what is done in this R package: https://rpkgs.datanovia.com/ggpubr/reference/ggballoonplot.html

Thanks

@plotly plotly locked and limited conversation to collaborators Jun 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants