Graph for 4 Variables: 6 Ways to Visualize

Charts & pivot tables · Updated November 23, 2026

The best graph for 4 variables depends on what you want to show, but the most common and effective options are a bubble chart (3 numeric variables plus a categorical color) or a small-multiple panel of scatter plots (one panel per category). If all four variables are numeric, a 3D scatter plot with color or size as the fourth dimension works, though it can be hard to read. For time-series data, a multi-line chart with color and line style distinguishing two variables is often clearest. There is no single “correct” answer—the right choice depends on whether your variables are numeric, categorical, or a mix, and on your audience.

Why 4 Variables Are Hard to Graph

Standard charts handle two dimensions easily: x and y axes. A third variable can be encoded with color, size, or shape. A fourth variable pushes you into more advanced territory because human vision struggles to track more than three visual channels at once. Common pitfalls include overloading a single chart with too many colors, using 3D projections that hide data points, or relying on size differences that are too subtle to compare accurately.

For example, you might have data on car models: horsepower (numeric), weight (numeric), fuel economy (numeric), and brand (categorical). A scatter plot of weight vs. fuel economy, with point size representing horsepower and color representing brand, gives you all four variables in one view. But if you have 15 brands, the legend becomes unreadable. In that case, small multiples—one scatter plot per brand—are far clearer.

Bubble Charts: The Classic 4-Variable Workhorse

A bubble chart is a scatter plot where the size of each marker encodes a third numeric variable, and the color (or shape) encodes a fourth variable, which can be numeric or categorical. This works well when the size variable has a wide range and the color variable has only a few categories.

  • X-axis: first numeric variable (e.g., GDP per capita)
  • Y-axis: second numeric variable (e.g., life expectancy)
  • Bubble size: third numeric variable (e.g., population)
  • Bubble color: categorical variable (e.g., continent)

In Excel, you can create a bubble chart by selecting your data and going to Insert > Charts > Scatter (X, Y) > Bubble. You will need three columns of numeric data (X, Y, and size) plus a column for the color category. To assign colors by category, you must add a data series for each category—Excel does not automatically color bubbles by a text column. A practical workaround is to sort your data by category and add each category as a separate series.

Small Multiples: The Clearer Alternative

Small multiples (also called trellis or facet charts) split the data into separate panels, one per category. Each panel shows the same two axes, so you can compare patterns across panels without color overload. This is ideal when you have a categorical fourth variable with more than three or four levels.

For example, if you have sales data for four regions (North, South, East, West) and want to show revenue vs. advertising spend over time, you would create four scatter plots, one per region, all with the same scale. This makes it easy to see if the relationship differs by region. In Excel, you can build this manually by copying the chart for each region, or use a pivot chart with a filter. In Python’s Matplotlib or R’s ggplot2, small multiples are built-in features.

3D Scatter Plots: When You Really Need Depth

A 3D scatter plot uses X, Y, and Z axes for three numeric variables, and then encodes the fourth variable with color or size. This is visually impressive but often misleading because perspective makes it hard to judge exact positions. Rotating the plot helps, but static images can hide points behind others.

If you choose this route, use it only when the fourth variable is categorical with a few levels, and always provide a 2D alternative for precise reading. In Excel, 3D scatter plots are not natively supported (you can use a 3D column chart, but not a true 3D scatter). Tools like Python’s Plotly or R’s rgl allow interactive rotation, which mitigates the occlusion problem.

Multi-Line Charts for Time-Series Data

When your fourth variable is time (or any ordered sequence), a multi-line chart is often the best choice. You plot time on the X-axis, a numeric variable on the Y-axis, and use color to distinguish one categorical variable while using line style (solid, dashed, dotted) to distinguish another. This works well when you have, for example, monthly sales for two product lines across three regions—six lines total, which is manageable.

For more than six lines, the chart becomes cluttered. A better approach is to use small multiples again, with each panel representing one region and lines representing product lines. In Excel, you can create a line chart with multiple series by selecting the data and inserting a line chart; then manually change each series’ line style via Format Data Series.

Heatmaps and Matrix Plots: A Different Angle

A heatmap uses color intensity to represent a numeric value across two categorical axes. This can encode four variables if you use a grid of small multiples: for example, rows are product category, columns are region, and the cell color shows sales volume. The fourth variable could be time, shown as a slider or as multiple heatmaps side by side.

In Excel, you can create a heatmap using conditional formatting on a grid of numbers. For a true heatmap chart, you would need a third-party add-in or use a table with colored cells. This approach is best when you have two categorical variables and one numeric variable, plus a time dimension that you can animate or show as separate panels.

How to Choose the Right Graph

Start by classifying your four variables:

  1. Count how many are numeric vs. categorical.
  2. If 3 numeric + 1 categorical: bubble chart (if categories ≤5) or small multiples (if more).
  3. If 4 numeric: 3D scatter with color or size, or a scatter plot matrix (multiple 2D plots pairing each variable).
  4. If 2 numeric + 2 categorical: small multiples with color or shape.
  5. If 1 is time-series: multi-line chart with color and line style.

Also consider your audience. If they are not used to reading bubble charts, a small-multiple panel is safer. If you are presenting in a slide, a simple 2D scatter with color and size is often the most memorable. Always test readability by printing in grayscale—if the chart fails without color, you need a different encoding.

Common Mistakes and How to Fix Them

The most frequent error is using too many colors. The human eye can distinguish about 7–10 colors reliably, but only 3–4 at a glance without a legend. If you have more than five categories, switch to small multiples. Another mistake is using bubble size for a variable with small differences—if the largest value is only 20% bigger than the smallest, viewers cannot see the difference. Use a size scale that starts at zero or uses a square-root scale to exaggerate differences.

Also, avoid 3D charts unless you have interactive rotation. Static 3D plots are notoriously misleading because the perspective distorts distances. If you must use 3D, label the axes clearly and provide a table of exact values below the chart.

Frequently Asked Questions

Can I graph 4 variables in Excel? Yes. Use a bubble chart for 3 numeric + 1 categorical (by adding separate series per category), or create small multiples manually by copying charts. For 4 numeric variables, Excel does not have a native 4D chart, but you can use a scatter plot with color and size (size for one numeric, color for another, but color must be binned into discrete values).

What is a scatter plot matrix? A scatter plot matrix (or SPLOM) is a grid of small scatter plots showing every pair of variables. For 4 variables, you get a 4×4 grid (12 unique plots). Each plot shows the relationship between two variables, and you can color points by a categorical variable. This is useful for exploring correlations but not for presenting a single story.

Is a radar chart good for 4 variables? Radar charts (spider charts) can show 4 or more variables as axes radiating from a center, but they are only useful when all variables share the same scale and you want to compare shapes of different observations. They are poor for precise value comparison because the area and angle are hard to judge. For most purposes, a bar chart with grouped bars or a small multiple is better.

How do I show 4 variables over time? Use a multi-line chart with time on the X-axis, one numeric variable on the Y-axis, and encode the other two variables with color and line style. Keep the total number of lines under 8. If you have more, use small multiples with time on the X-axis and lines for one categorical variable, with panels for the other.

What if one variable is a percentage? Percentages are fine as a numeric variable on a 0–100 scale. Just ensure the axis starts at 0 to avoid exaggerating differences. If the percentage is a share of a whole (e.g., market share), consider a stacked bar or a treemap, but those only handle 2–3 variables well. For 4 variables, keep the percentage as a regular numeric variable.

Can I use color and shape together? Yes. Shape is a good alternative to color for accessibility (color-blind viewers). Use shape for a categorical variable with up to 6 levels and color for another categorical variable with up to 3 levels. Combining both gives you up to 18 combinations, but readability drops quickly—stick to under 10 total combinations.

Related

Try it: the Percentage Formula Generator: percent of, percent change, increase and decrease, with the formula.

More in Charts & pivot tables

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.