Skip to content

size legend doesn't display when point size is altered #10

@j-andrews7

Description

@j-andrews7

This will be an issue for scatterPlot and dotPlot plots where size may be used to encode important information.

Unfortunately, this is just not implemented upstream in R plotly:
plotly/plotly.R#705
plotly/plotly.R#2254
dtm2451/dittoViz#7
plotly/plotly.R#2163

Looks like maybe it'll make its way in soon:
plotly/plotly.js#7656

A path to a workaround can be found here, which would involve taking the min/max of the size variable and picking 4-5 evenly spaced values and making them into a subplot to put alongside the main plot. Pretty annoying, and it won't have typical legend functionality, but may be the simplest approach for now.

Also tried screwing around with the approaches here, but it didn't seem to work properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions