When I make a Bubble Chart in Google Sheets, the bubbles are not the correct size relative to one another, leading to false impression about the data. How can I make it so the area of each bubble is proportional to the size of the data it represents?
How can you control the relative bubble size in a Google Sheets Bubble Chart?
46 Views Asked by Jim Hays At
1
There are 1 best solutions below
Related Questions in GOOGLE-SHEETS
- google sheets, search and replace for next colum
- AppScript to replace image in google slides
- Regex to match repeated substring in Google Sheets
- How to append row to specific columns with gspread?
- Find a value in a range of cells (multiple rows and columns)
- Create date column based on range
- Look up a value using month of the date
- Data recovery based on other data
- Gsheet - Automatically send an email using a date & time in a Cell
- google sheet script to convert the Scientific notation in the selected area to number
- How can I limit the number of dropdown entries in a column in Google Sheets
- Parse tag in html via Google Sheets (importxml)
- Why is the background color of my google sheet web app not being applied?
- Google Sheets script that automatically locks a sheet 24 hours after a cell is edited
- My Google Sheets formulas mysteriously break as time passes, fix themselves when refreshed
Related Questions in VISUALIZATION
- Sigma.JS custom rendering
- Folium Timestampedgeojson - How to add dynamic html for the title of the map
- Interactive bar chart with multiple conditioning variables and default shown distribution is unconditioned
- How to create Tree chart in Apache Superset
- Why is countplot showing single value
- Visx Streamgraph Custom Typing
- Add interactive vertical scale within <td> elements?
- Overlapping R subplots
- VEGA LITE : stacked bar spacing between categories with fixed order
- Alignment of line charts in a connection group when using Apache ECharts
- Sort Order of Stacked Bars in VegaLite
- Dynamic Gradient in Vega Via Signals
- Alluvial diagram with within-group-associations in R
- How to deal with nodes with no outgoing and incoming flows but show them in Sankey diagram with plotly module in Python?
- Is it possible to create a node-link diagram with ggplot?
Related Questions in BUBBLE-CHART
- mapView.fitToBounds() method from highcharts not working
- Bubble Chart plot area exported to png gets cut out using a customized theme in packcicles
- How can you control the relative bubble size in a Google Sheets Bubble Chart?
- Create bubble chart using two data sets
- How to change ranges and color of bubble legend in R Highcharter?
- change fill color of continuous bubbleplot ggplot
- Create a Bubble chart with packcircles I want circles instead of ovals plus legend ggplot
- Having trouble getting bubbles to cluster together in center of doughnut chart
- how to centralize bubble in faced grid
- I want to add distance or space between the Circular Packing Bubble chart
- Provide a real time scenario to draw a bubble chart for blog publishing
- Bubble chart Hover
- Can I change the data displayed on hovering over a bubble chart in highcharts?
- R plotly - how to update colour in a bubble chart without redrawing the plot in shiny
- d3.hierarchy not giving x, y, r values
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Google Sheets doesn't give direct control over bubble sizes in a bubble chart. As near as I can tell, bubble sizing is determined in the following way:
Find the largest item, set this to display at the maximum bubble size (displays with a diameter of about 62 pixels). Find the smallest item, set this to display at the minimum bubble size (displays with a diameter of about 12 pixels, or ~1/5th the diameter largest bubble, or ~20%). To find the area scale factor, we square the scale factor, getting ~1/25th the diameter, or ~4%, This means that effectively, the visual spread between the smallest and largest bubbles is always a factor of 25 (unless all values in the bubble chart are the same, in which case they are all shown at the max size). Next, all in-between values are given a bubble with a radius that is scaled linearly between the largest and smallest elements.
This leads to various problems:
To illustrate that last point, if your data set is as follows, compare the expected radius with the actual radius, and the actual frequency with the displayed area:
Data Set 1
as % of max data point
as % of max data point
as % of max bubble
Some areas are too large, and some are too small, but it might not be very obvious with this example.
Data Set 2
The situation is made much worse when your minimum data point is larger relative to the maximum data point. Consider the same set of data from above, but removing data points 0-4. Naïvely, one might expect bubbles 5-10 to be the same size as bubbles 5-10 above. While bubble 10 stays the same size, look at what happened to bubble 5!
as % of max data point
as % of max data point
as % of max bubble
Because the ratio between the area of the largest and smallest point is always 25, if your data has a smaller ratio between max and min, you can only get a correct visualization by introducing a fake max or min. If your data's spread is larger, you have to either remove some of the data, or cap the display size of some of the largest or smallest data points. Even if your spread randomly happens to be exactly 25, the in-between points will still have the wrong values.
Here's what we can do to fix this, assuming our data is structured as follows:
First, insert a 0 data point as an anchor for the minimum size:
Second, add a re-scaling formula to column D (any values below the 4% threshold we will display at the minimum size):
=(MAX(sqrt(C2/max(C$2:C))-0.2,0)/0.8)^2Next, add a category column to column E:
=if(C2=0," ",if(C2=0,"<=",">")&maxifs(C$2:C,D$2:D,0))Then when you create your chart, set the category to column E, and the bubble size to column D.
Data Set 1:
Data Set 2:
This leaves an extra bubble in the legend and on the graph, so lastly, while we can't totally get rid of it, we can change the series color of your anchor point to white. If you want, you can change the colors of the other two series as well.
Data Set 1:
Data Set 2:
In this chart, the red bubbles are larger than they should be, and are set to the minimum allowable size. The blue bubbles are all correctly scaled relative to one another.