DATES & TIMES

Dates & times: These graphs display changes in quantitative or categorical variables over a dimension of time (date-time, date, year, month, quarter, etc.).

Line graphs

A line graph connects a numeric value at each point in time with a line. Time goes on the x axis and the value goes on the y axis, so the slope of the line shows how fast the value is rising or falling. Line graphs are the most common way to show a trend over time. Points can be added to show where each measurement was taken.

Grouped line graphs

Grouped line graphs draw a line over time for each group on the same axes. They make it easy to compare trends, and to see when one group passes another. Color, line type, and line width can separate the groups or highlight a few of them, and facets can split the groups into small multiples. A legend explains each line.

Bump charts

A bump chart shows how the rank of each group changes over time. Time goes on the x axis and the rank goes on the y axis, with the top rank at the top. Smooth lines connect each group’s ranks, so we can follow who moves up and who moves down. Color separates the groups, and a legend or labels name each line.

Slope graphs

A slope graph compares the values of several groups at two points in time. Each group gets a point at each time, and a line connects the two points. The slope of each line shows whether the group went up or down, and how much. Slope graphs are a simple way to show before and after comparisons for many groups at once.

Stream plots

A stream plot stacks the values of several groups over time into a flowing shape centered around a middle line. The thickness of each layer shows that group’s value at each point in time, and the total thickness shows the overall value. Stream plots are useful when groups rise and fall at different times. Color separates the layers, and a legend or labels name each one.

Alluvial charts

An alluvial chart shows how the members of a group move between categories over time. Each time point is a column of stacked categories, and bands flow between the columns to show how many members moved from one category to another. The width of each band is proportional to its count. Color usually follows each band’s starting category, and a legend explains the colors.

Instance charts

An instance chart marks each time a category appears with a small tick. Time goes on the x axis and the categories go on the y axis, so gaps in a row show when a category didn’t appear at all. Transparency (alpha) or color can show how often each instance occurred. Instance charts are a good way to show the timing of events across many categories.