Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Google Sheets Z Axis Chart: How to Create 3D Data Visuals

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Google Sheets does not have a native "Z-axis" chart type that allows for true 3D Cartesian plotting (X, Y, and Z coordinates). To achieve a Z-axis effect, you must use a Bubble Chart, where the third dimension is represented by the size of the data point, or a 3D Column/Pie chart, where the Z-axis is purely aesthetic depth rather than a data-driven coordinate. For those needing to visualize three distinct variables, the Bubble Chart is the only functional method to map three numerical data points onto a two-dimensional screen.

What You'll Need

  • A Google account with access to Google Sheets.
  • A dataset containing at least three columns of numerical data (X-axis, Y-axis, and the Z-axis/Size value).
  • A desktop browser (Chrome, Firefox, or Safari), as the chart editor is significantly more limited on mobile apps.

Step-by-Step

  1. Organize Your Data: Arrange your data in three adjacent columns. The first column should be your labels or X-axis values, the second column your Y-axis values, and the third column the values you want to represent as the "Z-axis" (the size of the bubbles). For example, if you are tracking city populations, Column A could be the City Name, Column B the Average Income (X), Column C the Cost of Living (Y), and Column D the Total Population (Z).
  2. Select the Data Range: Click and drag your mouse to highlight all cells containing the data you wish to plot, including the header row. Ensure there are no empty rows or columns within your selection, as this can cause gaps in the chart rendering.
  3. Insert the Chart: Go to the top menu and select Insert > Chart. Google Sheets will automatically generate a chart based on your data. It may default to a Line or Column chart, which will not show your third dimension.
  4. Change the Chart Type: In the Chart Editor panel that appears on the right side of the screen, click the Setup tab. Under the "Chart type" dropdown menu, scroll down to the "Scatter" section and select the Bubble Chart icon. (Note: Menu labels may differ slightly depending on your browser language or account region).
  5. Configure the Axes: In the Setup tab, verify the following assignments:
    • X-Axis: This should be your first numerical variable.
    • Y-Axis: This should be your second numerical variable.
    • Series: This is where your Y-axis data usually sits, but for a bubble chart, ensure your primary data series is selected.
    • Size: This is the critical "Z-axis" step. Click the "Add Size" button and select the column containing the values that should determine the bubble size.
  6. Add Labels: To make the chart readable, click "Add Labels" in the Setup tab and select the column containing the names or categories (e.g., City Names). This ensures each bubble is identified.
  7. Customize the Visuals: Switch to the Customize tab in the Chart Editor. Under the "Bubble" section, you can adjust the bubble size to ensure they do not overlap too much or appear too small to see. Under "Chart & axis titles," give your X, Y, and Z axes clear names so the viewer understands what the bubble size represents.
  8. Refine the Scale: If your bubbles are clustered in one corner, go to Customize > Horizontal Axis (or Vertical Axis) and manually set the Minimum and Maximum values. This "zooms in" on the data and makes the Z-axis differences more apparent.

Common Mistakes

The most frequent error is attempting to use a 3D Column chart to represent a third variable. In Google Sheets, the "3D" option in Column or Pie charts is a visual style only; it adds depth to the bars to make them look like blocks, but it does not map a third set of data to a Z-coordinate. If you select "3D" in the customize menu for a bar chart, you are changing the aesthetics, not the data dimensions.

Another common mistake is using non-numerical data in the "Size" field. The Z-axis in a bubble chart requires a number to calculate the area of the circle. If you attempt to map a text column to the size field, the chart will either fail to render or will treat all bubbles as the same size, effectively removing your third dimension.

Users also often forget to adjust the axis scales. Because bubble charts can have varying data ranges, the default "Auto" scale often leaves a vast amount of white space, making the Z-axis (bubble size) look insignificant. Always check if manual scaling is needed to bring the focus to the data cluster.

Tips

To enhance the readability of your Z-axis, use a color gradient. While Google Sheets has limited native support for multi-color gradients based on value in a single series, you can create multiple series by splitting your data into different categories. This allows you to assign different colors to different groups, adding a fourth dimension of data (category) to your 3D visualization.

If your Z-axis values are extremely large (e.g., in the millions) and your X/Y values are small (e.g., 1 to 10), the bubbles may overwhelm the chart. Consider creating a "Helper Column" using a formula like =LOG10(C2) or =C2/1000 to normalize the Z-axis data before plotting it. This keeps the relative size differences intact while preventing the bubbles from covering the entire screen.

For professional presentations, remove the chart border and gridlines under the Customize > Chart style menu. This creates a cleaner look that emphasizes the spatial relationship between the X, Y, and Z variables.

Troubleshooting

The "Size" option is missing in the Chart Editor: This happens if the wrong chart type is selected. Ensure you have specifically chosen "Bubble Chart" from the Scatter category. Standard Scatter charts only support X and Y; only the Bubble Chart enables the Size (Z) field.

Bubbles are all the same size: Check your data source. Ensure the column selected for "Size" contains only numbers. If the numbers are formatted as text (aligned to the left of the cell by default), Google Sheets may not recognize them as values. Highlight the column and go to Format > Number > Number to fix this.

The chart is blank or showing an error: This usually occurs when there are hidden characters or "#N/A" errors in your data range. Use the =IFERROR() function to clean your data or filter out empty rows before selecting the range for the chart.

Bubbles are overlapping too much: Go to the Customize tab and look for the Bubble size settings. Reducing the maximum bubble size will prevent them from obscuring each other, though it may make very small values harder to see. Alternatively, adjust the axis minimums and maximums to spread the bubbles further apart.

Frequently Asked Questions

Can I create a true 3D surface plot in Google Sheets?

No, Google Sheets does not support true 3D surface plots or 3D scatter plots where you can rotate the axes. You must use a Bubble Chart to simulate a third dimension via size or use a third-party add-on.

How do I change the color of the bubbles based on the Z-axis value?

Google Sheets does not automatically color bubbles based on their size. To achieve this, you must separate your data into different series based on value ranges and manually assign a color to each series in the Customize menu.

Will a bubble chart work on the Google Sheets mobile app?

You can view bubble charts on mobile, but creating and configuring the Z-axis (Size) settings is difficult or impossible on the app. It is highly recommended to set up the chart on a desktop browser first.

What is the difference between a Scatter chart and a Bubble chart?

A scatter chart plots two variables (X and Y) as points. A bubble chart adds a third variable (Z) by changing the size of those points, allowing you to visualize three pieces of information simultaneously.

Can I use a Z-axis for time-series data?

Yes, you can use time as your X-axis, a metric as your Y-axis, and a volume or importance metric as your Z-axis (bubble size). This is a great way to show how the magnitude of an event changed over time.