Skip to content

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

Closed
@daattali

Description

@daattali

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions