• 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.

Colorful infographic showing bar graphs, a pie chart, and a rising line graph on a gradient background with gears and files.

The easiest approach is to first decide which chart type should be used. There are two things to consider:

  1. what should describe the data

  2. what should measure the data

Table of Content

  1. Start with dimensions and metrics

  2. Bar chart

  3. Composed chart

  4. Line chart

  5. Pie chart

  6. Floating bar chart

  7. Table chart

  8. How to choose the right structure

  9. Common structure mistakes to avoid

  10. Quick checklist

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

CityListings

Hamburg

120

Berlin

150

In this example:

  • City is the dimension

  • Listings is the metric

Stacked bar chart example

CityProperty typeListings

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

CityAverage priceNumber 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.

CityNew constructionsExisting 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.

CityProperty typeListings

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 typeListings

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

CityMin priceMax 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

CitySegmentListings

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

You may also be interested in

You may also be interested in

You may also be interested in