Sub topic 10
Choosing a visualization
This chapter assumes you can already build a pivoted table in a Free-form exploration. You should know how to place dimensions in Rows and Columns and metrics in Values in Tab Settings, and how scopes limit which fields combine. Here you will learn how to pick a chart type for a question and how the chart reads the table behind it.
The visualization is a view of the table
A Free-form exploration always has one table configuration. The Visualization setting in Tab Settings decides how that configuration is drawn. Changing the type does not change the query, the segments or the filters. Only the drawing changes.
Charts do not read the table in the same way, so the same Rows, Columns and Values can look useful in one type and meaningless in another. Treat the chart type as a choice made after you know your question and your table shape.
The Free-form technique offers these visualization types:
| Type | Best question | Typical rows | Typical values |
|---|---|---|---|
| Table | What are the exact numbers? | Any dimension | Any number of metrics |
| Line chart | How does a metric change over time? | Date, week or month | One or two metrics |
| Bar chart | How do categories compare? | A category such as channel | One metric |
| Donut chart | What share does each category hold? | A category with few values | One metric |
| Scatter plot | How do two metrics relate across items? | Page, campaign or source | Two metrics |
| Geo map | Where do users come from? | Country, region or city | One metric |
Start from the question
Match the question to a shape before you open the picker.
- Trend questions ask "Did it rise after the launch?" These need a time dimension such as Date, Week or Month, and a line chart.
- Comparison questions ask "Which channel brings the most engaged sessions?" These need a category dimension and a bar chart.
- Composition questions ask "What share of sessions is mobile?" These suit a donut, but only with a handful of categories.
- Relationship questions ask "Do pages with more views also keep people longer?" These need two metrics and a scatter plot.
- Location questions ask "Which countries convert best?" These need a geographic dimension and a geo map.
- Lookup questions ask "What was the exact bounce-related figure on Tuesday?" A table is the right answer.
How each chart reads your configuration
Table
The table is the only type that shows every value you configured, including the cell type options (plain text, bar and heat map) from the previous chapter. It is the best place to check your numbers. Many analysts build in a table first, confirm the figures, and then switch the type.
Line chart
A line chart expects the time dimension in Rows. Each series is a combination of a metric and, if you use a pivot, a Columns value. If you put a dimension such as Device category in Columns, you get one line per device. If you also add several metrics, the number of lines multiplies, and the chart becomes hard to read quickly.
Keep these points in mind:
- Pick a granularity that matches the question. Date suits a four-week window. Week or Month suits a year.
- A line chart connects points, so it suggests continuity. Use it only for ordered data such as time. A line across channel names has no meaning.
- Compare no more than a few lines. If you need more, use a segment comparison or a filter to cut the data first.
Bar chart
A bar chart suits ranked categories. Put the category in Rows and one metric in Values, then sort by that metric by clicking the column header in the table. Sorting before you switch the type gives a ranked chart. When you add a dimension in Columns, the bars split by that dimension, which shows composition within each category.
Donut chart
A donut chart draws parts of a whole, so the values must add up to something meaningful. Sessions by device category works, because each session has one device category. Total users by channel does not add up cleanly, because a user can appear in more than one channel, and the slices will sum to more than the true user count. Prefer a donut when you have two to five categories and one additive metric such as sessions or event count.
Scatter plot
A scatter plot puts each row item at a point set by two metrics. It answers "which items are unusual?" For example, rows of Page path with Views on one axis and Average engagement time on the other will reveal pages with high traffic and low engagement. Add a few metrics in Values and check how the interface assigns them to the axes. The metric order in Values matters, so reorder if the axes come out the wrong way round.
Scatter plots are only as good as the row count. A plot of three rows tells you nothing. A plot of 50 pages tells you a lot.
Geo map
A geo map shades locations by a metric. It needs a geographic dimension such as Country, Region or City in Rows. Shading shows relative size, so a large country with many users will dominate the picture. If your question is about quality, such as conversion rate, use a rate metric and not a count, or the map will simply show where the traffic is largest.
Row limits change the chart
The number of rows that appear in a chart comes from the Show rows and Start row settings in Tab Settings, not from your data size. By default a modest number of rows is shown, so a bar chart of pages may only show the top ten. This is useful, but it has two consequences:
- A donut chart covers only the rows shown. The slices do not include everything outside them, so the shares are not shares of the full total.
- A scatter plot draws only visible rows, so increase Show rows if you want to see the whole spread.
Check the row settings whenever a chart looks incomplete.
Segment comparisons and charts
When you add segments to the Segment comparisons area, they appear in the chart as extra series or extra bars. A line chart with two segments, such as "Purchasers" and "Non-purchasers", draws two lines for each metric. This works well for one metric and two or three segments. If you combine several segments with a device pivot, you may exceed what the chart can show clearly. In that case, return to the table or use a filter.
Common errors
- Using a line chart for categories. The connecting lines imply a trend that does not exist. Use a bar chart.
- Using a donut for non-additive metrics. Users, and any rate or average, do not sum across slices.
- Reading a scatter plot with the axes swapped. Confirm which metric is on which axis before you draw a conclusion.
- Forgetting row limits. A chart that covers only the top rows can mislead if the reader assumes it covers all of them.
- Putting too many series in one chart. Cut the data with a segment or a filter before you add more columns.
- Mixing a metric with different units. Plotting counts and durations together on one view makes one series look flat. Split them across two tabs.
A worked example
Suppose you want to know whether organic search sessions are growing faster than paid sessions over the last 12 weeks.
- Create a new tab and set Rows to Week (or Date, if Week is not available in your property).
- Set Columns to Session default channel group.
- Set Values to Sessions.
- Use a filter on the channel dimension to keep only Organic Search and Paid Search, so the chart shows two lines.
- Set Visualization to Line chart.
Then ask a different question: which landing pages do the most damage? Switch to a new tab with Rows set to Landing page, Values set to Sessions and Engagement rate, and use a scatter plot. Pages with high sessions and a low engagement rate are your first candidates for improvement.
Exercise
Exercise
You built a table with Rows set to Device category and Values set to Total users. A colleague asks you to show it as a donut chart so the slices show each device's share of users. Why can this mislead, and which metric and chart would you use instead?
Show answer
A user can use more than one device in the reporting period, so the same user can be counted under several device categories. The slices then add up to more than the true number of users, and the shares are not true shares of the whole. Use Sessions, which are assigned to one device category each, so they are additive. A donut chart then shows each device's share of sessions. A bar chart is also a good alternative because it does not imply a part-to-whole relationship.
Exercise
A bar chart of Landing page by Sessions shows only ten bars, but your property has hundreds of landing pages. Which setting controls this, and what do you change to see more?
Show answer
The Show rows setting in Tab Settings limits how many rows the table and the chart display. Increase Show rows, or change Start row to page through the list, then check that the chart still reads clearly.