Domain 5 /

Which chart fits the data?

By the endMatch a table, graph or map to the data and the point to be made, and name the faults that make each display mislead.

Start from the data type and the point

The right display depends on two things: the kind of data and the point the reader should take away. Settle both before you open a charting tool.

Data fall into four types. Nominal data have no order, such as sex or exposure (yes or no). Ordinal data have an order but no meaningful distance between levels, such as low, medium and high, or age ranges. Discrete data are whole numbers, such as the number of ill persons. Continuous data can take any value in a range, such as the time from a meal to the first symptoms, or an infant mortality rate.

Then ask what the reader should conclude. A change from past patterns, a difference between areas or a difference by a risk factor each calls for a different display. To show a spatial pattern, a map is the preferred display; to show a pattern over time, often a line graph. Every display involves compromise.

Which display for which data

Common displays and when to use them
DisplayUse it to
TableShow numbers, rates, proportions and cumulative percents
Arithmetic-scale line graphShow trends in numbers or rates over time
Semilogarithmic-scale line graphShow rate of change over time, for values ranging over more than two orders of magnitude
HistogramShow the frequency distribution of a continuous variable, such as cases by date of onset (an epidemic curve)
Simple bar chartCompare the size or frequency of the categories of one variable
Stacked bar chartCompare totals and show the component parts of each total across groups
Pie chartShow the components of a whole
Spot mapShow the location of cases or events
Area mapShow events or rates by geographic area
Scatter diagramPlot the association between two variables

A table gives exact values and must stand alone

Tables display numbers, rates, proportions and cumulative percents. Because a table is meant to communicate, most tables should have no more than two variables and no more than eight categories for any variable.

A printed table should be able to stand alone if separated from the text. Its title describes the subject, person, place and time. Each row and column is labeled, with units such as years or rate per 100,000. Footnotes explain codes, abbreviations and symbols, note every exclusion, and give the source when the data are not original.

A table also carries context that a chart struggles to show, such as a margin of error. Its weakness is speed: a reader may need a long time to interpret it, so pair it with a chart or a map that brings out the main finding.

Arithmetic-scale and semilogarithmic-scale line graphs

Arithmetic-scale line graph

  • Equal distances on either axis show equal values.
  • It is the method of choice for plotting rates over time, and it can also show numbers and proportions.
  • A straight line means a constant change in the number or amount.
  • In epidemiology the y-axis always starts at zero. A scale break, if used, must be clearly marked.

Semilogarithmic-scale (semi-log) line graph

  • The x-axis is arithmetic and the y-axis logarithmic: the distance from 1 to 10 equals the distance from 10 to 100.
  • Use it when values range over more than two orders of magnitude, or to compare the relative rate of change of several series.
  • A straight line means a constant rate (not amount) of change, and a horizontal line means no change.
  • Parallel lines show identical rates of change, even when the lines sit at different levels.

Histograms and bar charts look alike but take different data

Histogram

  • Shows the frequency distribution of a continuous variable, grouped into class intervals.
  • Its columns adjoin, and the area of each column is proportional to the number of observations in its interval. With equal intervals, column heights are proportional too.
  • An epidemic curve is a histogram of cases by time of onset during an outbreak.
  • Never use a scale break.

Bar chart

  • Compares discrete categories, such as cause of death, or variables treated as discrete, such as age groups.
  • Bars have equal width and are separated by spaces. Bar length is proportional to the frequency in each category.
  • Order the bars by length or by a natural order such as age.
  • Never use a scale break: readers could misjudge the relative size of the categories.

Pie charts show the parts of a whole

A pie chart shows the proportions of a single variable's frequency distribution, the components of a whole. Start at 12 o'clock and arrange the slices from largest to smallest, clockwise; "other" or "unknown" may go last.

The eye cannot accurately judge slice areas, so print the percentage inside or near each slice. Pull a slice out of the pie only to give one wedge special emphasis. Pie charts can mislead, especially with more than two or three slices. A bar chart compares categories by bar length instead of by area or angle.

Spot maps show where; area maps show rates

Spot map

  • Uses dots or other symbols to show where each case lived or was exposed.
  • Shows the geographic distribution of cases.
  • Ignores the size of the population at risk, so it does not show risk. Many dots in a densely populated area need not mean high risk.

Area (choropleth) map

  • Shades or colors each area to show its rate of disease or another condition.
  • Best for standardized data such as rates. Limit the categories to three to seven.
  • Make the shading darker as the rate rises, in a single hue. Several hues are for categorical data.
  • Choose break points that show real patterns, never to hide a result or suggest variation that does not exist.

When a display misleads

A truncated scale

Quantitative axes should usually start at zero. Truncating the scale can overstate variability, and a bar chart or histogram must never have a scale break.

Unequal scales

Two graphs meant for direct comparison need identical scales.

Three dimensions

3D charts distract and can obscure data. Tilting a pie makes its slices hard to compare. Use 3D only when the data have a third dimension.

A pie with many slices

People read circular areas and angles poorly, so pies mislead most when they have more than two or three slices.

A spot map read as risk

Dots count cases. Without the population at risk, they cannot show where risk is high.

Software defaults

Charting packages often default to settings that differ from standard epidemiologic practice. Set the scale, order and labels yourself.

The wrong component on top

In a stacked display, put the component of most interest at the bottom. The components above it sit on a jagged baseline that is hard to compare.

Worked example

Choosing displays for an annual quality report

A hospital quality team needs four displays. (1) The monthly rate of hospital-acquired infections per 1,000 patient days for the last five years; the rates range from 1.2 to 4.8. (2) The length of stay, in days, of the 1,200 discharges in 2026. (3) The number of 2026 discharges for each of five payers. (4) The 2026 rate of emergency department visits per 1,000 residents in each county the hospital serves.

  1. 1

    Rates over time

    These are rates over time, and 1.2 to 4.8 spans less than one order of magnitude. Use an arithmetic-scale line graph with the y-axis starting at zero.

  2. 2

    Length of stay

    Length of stay is continuous, and the question is its frequency distribution. Use a histogram with equal class intervals and adjoining columns.

  3. 3

    Discharges by payer

    Payer is a set of discrete categories. Use a simple bar chart with separated bars, ordered by length, and an axis from zero with no scale break.

  4. 4

    County rates

    These are rates by place. Use an area map with darker shading for higher rates. A spot map of visits would show where visits came from, not the rate.

Result: The report uses a line graph for the infection trend, a histogram for length of stay, a bar chart for payers and an area map for county rates.

Try it

A pie for seven causes?

A colleague wants a pie chart of 2026 deaths in a county by cause, in seven categories, for a public brochure. What would you advise?

Hint: Think about how well readers judge slice sizes, and how many slices there are.

02 / Questions

Answer 9 questions

Check 1 of 9scenario · medium

An analyst must graph the U.S. rate of reported measles cases per 100,000 population for each year from 1955 to 2002. The rates fall from a high of 438.2 to a low of 0.02, and the report wants readers to compare the relative rate of change across the decades. Which display fits these data and this purpose?

Check 2 of 9scenario · easy

An analyst wants to show how the length of stay, in days, is distributed across a hospital's 1,200 discharges in 2026, grouped into equal class intervals. Which display fits?

Check 3 of 9scenario · medium

A spot map shows one dot for the home of each resident with a reported case of influenza in a city during one month. Most dots fall in the densely populated downtown. A manager concludes that downtown residents had the highest risk of influenza that month. What is the best response?

Check 4 of 9scenario · medium

A bar chart compares the number of patient falls in 2026 on two units: 60 on Unit A and 50 on Unit B. The vertical axis starts at 40, so Unit A's bar looks twice as long as Unit B's. What should the analyst change?

Check 5 of 9scenario · easy

An analyst draws a pie chart of the share of a hospital's 2026 discharges by discharge disposition, in five categories. Which construction choice follows recommended practice for pie charts?

Check 6 of 9scenario · hard

An analyst maps the 2026 rate of emergency department visits per 1,000 residents for each county in a state. Which map and shading fit these data?

Check 7 of 9scenario · easy

A printed table of 30-day readmission rates may later be copied on its own into a slide deck. What should its title describe so that the table can stand alone?

Check 8 of 9recall · hard

On a semilogarithmic-scale line graph of two hospitals' annual infection counts, two straight lines rise in parallel, and one sits well above the other. What does the graph show?

Check 9 of 9scenario · hard

A stacked display shows yearly deaths with any mention of four kinds of lung disease. The report's point is that deaths from one kind rose while the total fell. Where should that kind be placed in each stack?

03 / Recall

Answer without looking back

Name the display for each and one rule for building it: (a) yearly rates from 438.2 down to 0.02 per 100,000; (b) ages at diagnosis of 500 patients; (c) admissions by unit; (d) the share of discharges by disposition; (e) disease rates by county; (f) the home of each case in an outbreak.

Primary reading

Read the relevant section

Principles of Epidemiology in Public Health Practice, Third Edition: An Introduction to Applied Epidemiology and Biostatistics (SS1978) · Lesson 4, Introduction to Tables and Graphs ↗
Sources used in this lesson
  1. Principles of Epidemiology in Public Health Practice, Third Edition: An Introduction to Applied Epidemiology and Biostatistics (SS1978), Lesson 4, Using Computer Technology ↗Centers for Disease Control and Prevention
  2. Communicating With Census Data: Data Visualization (Select Topics in International Censuses), Good practices, provide context ↗U.S. Census Bureau
Glossary terms used in this lesson
infant mortality rate
Number of deaths among children under 1 year of age reported during a given time period ÷ number of live births reported during the same period × 1,000. It is generally calculated on an annual basis.
histogram
A graph of the frequency distribution of a continuous variable, based on class intervals. Its adjoining columns represent the number of observations in each interval, and each column's area is proportional to that number.
epidemic curve
A histogram that displays the number of cases of disease during an outbreak or epidemic by time of onset. The y-axis shows the number of cases; the x-axis shows date or time of onset.
bar chart
A chart that uses bars of equal width, separated by spaces, to compare categories. Bar length is proportional to the frequency in each category, so the scale should never be broken.
arithmetic-scale line graph
A line graph in which a set distance along any axis represents the same quantity anywhere on that axis. It is the method of choice for plotting rates over time.
area map
Also called a choropleth map: a map that shows rates of disease or other health conditions in different areas by using different shades or colors.
spot map
A map that uses dots or other symbols to show where each case-patient lived or was exposed.