Feature Request: Size Legend Bubble Chart
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 2.7k
- Forks
- 641
- PR merge metrics
- No merged PRs in 30d
Description
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/

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the supplied R example using plotly and compare its bubble sizing with the requested reference legend. Done means providing a bubble-size legend that reflects the carat values in the chart, with the expected behavior verified against the example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100