Skip to content

In a bubble chart where points have different sizes, the size in the legend should be consistent #755

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
daattali opened this issue Oct 8, 2016 · 1 comment

Comments

@daattali
Copy link

daattali commented Oct 8, 2016

The following line works nicely

plot_ly(iris, x = ~Sepal.Length, y = ~Sepal.Width, color = ~factor(Species), size = ~Petal.Length)

image

However, the following code results in the legend sizes being weird huge markers, and it's a reason enough to just suppress the legend altogether

myiris <- iris[!duplicated(iris$Species), ]
plot_ly(myiris, x = ~Sepal.Length, y = ~Sepal.Width, color = ~factor(Species), size = ~Petal.Length)

image

@cpsievert told me previously on Twitter that this might be a plotly.js bug. I don't know how to translate this into a JS issue, so if it's indeed a plotly.js bug could you please open the corresponding issue on their repo?

Potentially related to #705

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

2 participants