Sitemap
Data Science Collective

Advice, insights, and ideas from the Medium data science community

Member-only story

QUICK SUCCESS DATA SCIENCE

The Best Chart for Comparing Presidents

Meet the segmented cumulative line chart

11 min readOct 27, 2026

--

Press enter or click to view image in full size
A colorful cartoon line chart showing growth of the US National Debt under presidents Nixon through Trump. They are all riding the red line of the rising debt and waving cowboy hats.
Federal debt cartoon by Copilot. I want more granularity!

Have you ever heard of a segmented cumulative line chart on a shared timeline? The name’s not as catchy as line chart, bar chart, or scatterplot, but it blends a little of each to make something greater than the sum of its parts.

The idea behind this chart type is that sometimes breaking the line — that is, resetting a metric at meaningful boundaries — can reveal patterns traditional time series displays can obscure. By resetting each new series to zero, you can easily see magnitudes, patterns, and trends hidden in the data.

Here’s an example showing the increase in U.S. Federal debt during the last eleven administrations. Each sample point represents a fiscal year. The first chart shows nominal values and the second shows inflation-adjusted values in 1969 dollars (Nixon’s first term).

Press enter or click to view image in full size
A segmented cumulative line chart with shared timeline of nominal US debt increases under presidents Nixon through Trump.
Increase in nominal U.S. debt by president (by author)
Press enter or click to view image in full size
A segmented cumulative line chart with shared timeline of US debt increases under presidents Nixon through Trump. The values are inflation-adjusted to 1969 dollars.
Increase in U.S. debt by president using constant 1969 purchasing power (by author)

--

--

Lee Vaughan
Lee Vaughan

Written by Lee Vaughan⁠

Author of “Python Tools for Scientists,” “Impractical Python Projects,” and “Real World Python.” Former Senior Principal Scientist at ExxonMobil.

Data Science Collective
Data Science Collective

Published in Data Science Collective

Advice, insights, and ideas from the Medium data science community