Bubble size should scale area, not radius
See original GitHub issueIssue Summary
The size of bubbles seems to be applied directly as the diameter of the bubble. This means that doubling the size makes the bubble area quadruple, which is visually misleading if you are plotting a quantity, which I expect is the common case.
Steps to Reproduce
Select some data with a simple query like SELECT 1, 2, 50 UNION ALL SELECT 3, 4, 100
, and plot it as a bubble chart. The bubble with size 100 will be four times the size of the bubble with size 50.
I would expect the radius to be set as the square root of the size, which would make the area and perceived size scale linearly with size. For example, this is how matplotlib does it.
Technical details:
- Redash Version: 8.0.0-beta+b27489
- Browser/OS:
- How did you install Redash: Helm chart
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:8 (7 by maintainers)
Top Results From Across the Web
Scaling to radius or area? - From data to Viz
When working with 2d objects, the scaling must be done using the area and not the radius. Furthermore, note that areas are a...
Read more >A Complete Guide to Bubble Charts | Tutorial by Chartio
Bubbles in a bubble chart should be sized with area corresponding to value, not diameter. Depending on how you are creating your bubble...
Read more >Right versus wrong bubble size - FlowingData
Bubbles are correctly sized by area (proportionate to the square root of the radius ). Much better. The lesson: graphs and charts might...
Read more >Approach to scale the size of investment with a wide extreme ...
First off, since you are most likely specifying the radius or diameter of the bubble, you need to take the square root of...
Read more >Bubble size distribution (density vs. bubble radius) in open ...
... of the bubble size distribution as a function of bubble radius is also different for bubbles smaller and larger than the Hinze...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This looks like a pretty simple change. Plotly supports the
sizemode
attribute for Bubble charts. The options arediameter
andarea
.Plotly doc: https://plot.ly/python/reference/#scatter-marker-sizemode
I changed it on a local build…
Diameter
Area
@deecay It could be default for new charts, but migration should keep old behavior for all existing ones.