
- 5 min read
How to structure data for different chart types
Different chart types need different data structures. Even if your sheet is clean and technically valid, a chart may still not work if the columns are arranged in the wrong way.

The easiest approach is to first decide which chart type should be used. There are two things to consider:
what should describe the data
what should measure the data
Start with dimensions and metrics
Dimensions
Dimensions describe the data and create categories.
Examples:
City
Year
Segment
Category
Property type
These values are usually text labels.
Metrics
Metrics measure the data and provide the values shown in the chart.
Examples:
Revenue
Transactions
Average price
Min price
Max price
These values must be numeric cells.
Bar chart
A bar chart needs:
1 required dimension
an optional breakdown dimension
at least 1 metric
Simple bar chart example
| City | Listings |
|---|---|
Hamburg | 120 |
Berlin | 150 |
In this example:
City is the dimension
Listings is the metric
Stacked bar chart example
| City | Property type | Listings |
|---|---|---|
Hamburg | Apartment | 80 |
Hamburg | House | 40 |
Berlin | Apartment | 90 |
Berlin | House | 7,200 |
In this example:
City is the main dimension
Property type is the breakdown dimension
Listings is the metric
Use a breakdown dimension only when you want to split values into subgroups.
Composed chart
A composed chart requires:
1 dimension
exactly 2 metrics
no breakdown dimension
| City | Average price | Number of listings |
|---|---|---|
Hamburg | 7200 | 120 |
Berlin | 6800 | 150 |
Munich | 10500 | 90 |
This setup is useful when you want to compare two related numeric values in one chart.
Important: Do not add a breakdown column here. The structure must stay simple.
Line chart
There are two valid ways to prepare data for a line chart.
Model A: multiple metrics
Use this model when each data series can be stored in its own metric column.
| City | New constructions | Existing properties |
|---|---|---|
Hamburg | 1596 | 20325 |
Berlin | 2103 | 32365 |
Munich | 1562 | 15232 |
This works well when the series are fixed and easy to compare.
Model B: breakdown structure
Use this model when you want to work with a breakdown dimension or support filtering later.
| City | Property type | Listings |
|---|---|---|
Hamburg | New constructions | 1596 |
Hamburg | Existing properties | 20325 |
Berlin | New constructions | 2103 |
Berlin | Existing properties | 32365 |
This structure is often more flexible for editorial use because it keeps categories in a dedicated column.
Which line chart model should editors use?
Use:
Model A when the series are fixed and unlikely to change
Model B when the categories may be filtered or reused later
In many editorial cases, Model B is the safer long-term choice.
Pie chart
A pie chart requires:
1 dimension
exactly 1 metric
| Property type | Listings |
|---|---|
Apartment | 120 |
House | 150 |
Villa | 20 |
This chart works best when the number of categories is low.
Best practice: Keep the number of slices small. Too many categories make the chart hard to read.
Floating bar chart
A floating bar chart requires:
1 dimension
exactly 2 metrics in separate columns
These two metrics represent:
lower bound
upper bound
Example
| City | Min price | Max price |
|---|---|---|
Hamburg | 500000 | 1200000 |
Berlin | 450000 | 980000 |
Munich | 800000 | 2500000 |
Important: The backend does not check whether the minimum is actually smaller than the maximum. Editors need to verify this manually.
Table chart
A table chart behaves differently from other chart types.
How it works
no aggregation
row order is preserved
Example
| City | Segment | Listings |
|---|---|---|
Hamburg | Premium | 120 |
Berlin | Premium | 150 |
Munich | Premium | 90 |
This makes a table chart useful when you want to display the data exactly as it appears in the sheet.
How to choose the right structure
Use this rule of thumb:
one category + one metric = simple chart
one category + breakdown + one metric = grouped or stacked chart
one category + two metrics = composed chart
one category + one metric with share of whole = pie chart
one category + min and max values = floating bar chart
exact row display without aggregation = table chart
Common structure mistakes to avoid
Adding extra helper columns without a purpose
Only include columns that are actually needed for the selected chart.
Using text instead of numeric metrics
A value like "7200" stored as text will not behave like a real metric.
Mixing chart structures in one sheet
Do not combine several logic models in the same dataset unless the chart setup explicitly supports it.
Using too many categories in a pie chart
Pie charts should stay simple and easy to scan.
Quick checklist
Before you connect the sheet to a chart, check:
the dimension column is clear
the metric columns are numeric
the chart type matches the column structure
no unnecessary columns are included
the data model is consistent from top to bottom
You may also be interested in
Common data issues and how to avoid them
Preparing data in Google Sheets for data visualizations
File storage, access and setup
You may also be interested in
Updating and maintaining data
Sorting and color assignment in charts
Aggregation methods for chart metrics
Working with filters- 5 min.
Creating a dashboard- 5 min.
Creating charts- 5 min.
You may also be interested in
Tables- 5 min.
Composed charts (line and bar combination)
Line Charts- 5 min.
Pie charts- 5 min.
Floating Bar Charts- 5 min.
Bar Charts- 5 min.
You may also be interested in
Charts and SEO: how to make data visible and valuable