DS 227 · Week 10

Data Storytelling

Narrative, dashboards and communication: presenting a finding to an audience with thirty seconds and no context.

Knowledge Discovery in Data · University of the Philippines Cebu

Outline

From finding to audience

Key terms · 1 of 2

Eight terms for telling the story

audience

The particular person or group who will read the chart, decided before writing.

e.g. a fellow analyst, a newspaper editor, the general public

narrative arc

The order a story moves in. Here: three beats, context → contrast → consequence.

e.g. "spend grew" → "48 firms hold a quarter" → "worth asking why"

headline (finding-title)

A chart title written as a full sentence that states what the chart shows, with its number.

e.g. "Luzon sales grew 35% over the half-year", not "Sales"

annotation

A short note written on the chart itself, next to the mark it explains, often with an arrow.

e.g. an arrow to the dip labelled "enrolment period"

chart choice

Picking the kind of chart from the question: line for change over time, sorted bars to compare groups…

e.g. "how did it change?" → a line chart

pre-attentive attribute

A visual property the eye notices in a split second, before reading: colour, size, position, length.

e.g. one orange bar among grey ones is noticed at once

decluttering

Deleting everything on a chart that does not help the message: heavy grid lines, borders, 3-D, extra decimals.

e.g. ₱267.7B instead of ₱267,688,008,746.34

colour meaning

Using colour on purpose: one colour per thing, the same in every chart, and grey for "background".

e.g. Visayas is orange in every panel of the dashboard

Key terms · 2 of 2

Eight terms for building the dashboard

dashboard

One screen of a few charts and headline numbers that people check again and again to answer one question.

e.g. a page showing spend per year, by region, and the top contractors

KPI (key performance indicator)

One headline number a dashboard tracks, shown big so it is read first.

e.g. "₱1.60T total, 11 years" in the top-left tile

small multiples

A grid of small charts side by side, each making one point, so the eye can compare them.

e.g. a trend panel next to a totals panel

filter

A control that narrows the data a dashboard shows, such as a drop-down list or a date slider.

e.g. selecting "Region VII" redraws every chart for Region VII only

interactivity

A chart that responds to the reader: hover for exact values, click to filter, zoom in.

e.g. hovering a bar shows "Luzon: 134"

pivot table

A reshaped table: one row per value of one column, one column per value of another.

e.g. rows = months, columns = regions, cells = sales

figure & axes

In matplotlib, the figure is the whole picture; each axes is one chart panel inside it.

e.g. plt.subplots(1, 2) gives one figure holding two axes

legend

The small key on a chart that says which colour or line style stands for which thing.

e.g. an orange line = Visayas, a blue line = Luzon

About the tool

Dashboards came from executive reporting in the 1980s

1970s

Decision support

Research on computer systems that help managers decide.

1980s

Executive systems

Early “executive information systems”, limited by unreliable data.

1992

KPIs

Kaplan and Norton’s balanced scorecard; dashboards become popular later that decade.

2003

Tableau

Founded by three Stanford researchers to make charts without code.

SourceWikipedia: Dashboard (computing); Balanced scorecard; Tableau Software

About the tool

How large the dashboard business has become

SourceWikipedia: Tableau Software; Wikipedia: Dashboard (computing); Microsoft: Power BI Desktop

Runnable code

Charts on these slides draw in the browser

As in earlier weeks, a block with a ▶ Run / Edit button runs in the browser and can be changed; charts appear under the code. This week the small sales table from the lab drives every chart, so a change to the code shows its effect at once.

Templates are not code

Many blocks this week are text to adapt: headlines for three audiences, a talk outline, answers to hard questions. They have no Run button and are not part of the notebook.

import io, sys print("pandas version:", pd.__version__) print("64-bit Python:", sys.maxsize > 2**32) t = pd.read_csv(io.StringIO("city,pop\nCebu,964000")) print(t.dtypes) pandas version: 3.0.5 64-bit Python: True city str pop int64 dtype: object
  • pd.__version__the installed pandas: 3.0.5 on the laptop, 2.2.0 in the browser
  • t.dtypeseach column’s type: str on the laptop, object in the browser
Part A

Narrative

Designing for a reader with no prior context.

Weeks 7–9 covered finding and checking one result. This part adds the next step: choosing who the audience is and in what order to present it.

Curse of knowledge

The analyst's knowledge gap

The analyst has worked with this data for weeks and knows every column name and caveat. The reader has one screen and thirty seconds. The curse of knowledge is forgetting that this gap exists: once something is known, it is hard to imagine not knowing it.

Directions such as "turn left where the old bakery used to be" are clear to a resident but useless to a visitor who never saw the bakery.

The analyst's view

"Obviously the June dip is the enrollment period — everyone knows that."

The reader's view

An unexplained dip, a legend with unclear labels, and no stated relevance.

Remedy

The context goes on the chart: a finding-title, a label at the dip, units on the axis. Nothing outside the image should be assumed.

Audience

One finding written for three audiences

"48 of 4,841 contractors hold 27.6% of awarded value" is one fact. The audience, the particular reader addressed, determines its length, its framing, and what comes first.

Words in the analyst version

n=4,841
n is how many things were counted: here, 4,841 contractors
top 1%
the 48 contractors with the largest summed budgets (1% of 4,841)
Gini-adjacent
close to the Gini index, a 0–1 score of how unequal shares are (0 = all equal)
conduct claim
an accusation that someone did something wrong

Naming the audience first

Most unclear communication is written for no particular reader and is therefore suited only to the writer.

# to a fellow analyst "Top 1% of contractors by summed budget = 27.6% of awarded value, n=4,841. Gini-adjacent; no conduct claim." # to an editor "A small group of firms holds a quarter of flood control money. Structural, not an allegation." # to the public "48 companies. A quarter of the budget."
Audience needs

Three different deliverables from one analysis

The so-what test

A statistic becomes a story after two "so what" steps

A finding is stated, and the question "so what?" is then answered twice. (The median on the right is week 7's middle value: half the projects took longer, half shorter.) A finding with no second answer is a statistic, not a story.

A worked example

It usually takes two steps to reach something relevant to a reader, and the second step tests whether the evidence extends that far.

"Region VI projects take a median 260 days; Region I takes 167." # so what? "Nearly 100 days of difference in comparable flood control work." # so what? "Communities in Region VI wait three months longer for the same protection — worth asking why." # THAT is the sentence you lead with. # and note it is a question, because # the data cannot answer the why
Structure

The three beats of a data story

1

Context

What the reader needs to know first: "Two regions, six months of sales."

2

Contrast

The week-9 comparison, which shows what changed or differs: "Luzon leads; Visayas is climbing faster."

3

Consequence

Why it matters / what to watch: "If Visayas keeps growing twice as fast, the second half of the year is where the gap closes."

Three beats

Setup → tension → resolution

The flood story in three beats.

Same three beats as the last slide under their storytelling names: context = setup, contrast = tension, consequence = resolution.

Worked example

Each beat is one chart and one sentence

BeatThe chartThe sentence
SetupTotal spend per year, 2016–2024₱1.6 trillion over eleven years — ₱145.5B a year.
TensionContractor share, sorted descending48 of 4,841 firms hold 27.6% of it.
ResolutionThe same, with the caveat on the chartConcentration is structural, not evidence of conduct — and it is a question for the agency.
Order of presentation

The finding first, then the method and dataset

The analysis proceeds in order: source, clean, explore, conclude. The reader needs the opposite order.

Method belongs underneath

It is required, because it makes the claim checkable, but placed first it loses the reader before the main point.

# how you worked 1. downloaded DPWH export 2. cleaned 34,079 rows 3. grouped by contractor 4. found concentration # how you write 1. 48 firms hold a quarter of it 2. here is the chart 3. here is what it does not mean 4. here is the method + data # exactly reversed
Exercise · 3 min

One dashboard, one question

A dashboard is one screen of a few charts that people check again and again. Before any chart is added, the question it answers is written down. For the lab's data: "How do the regions compare — in level and in direction?" Every panel must serve it.

  • dfthe lab's long table: 12 rows, one per month per region, columns month, region, sales
  • df.pivot_table(index=..., columns=..., values=...)a pivot table: one row per month, one column per region, sales in the cells (a wide table)
  • .reindex([...])put the rows in calendar order; pandas sorts month names alphabetically (Apr, Feb, Jan…)
  • 21.0, 14.0floats, because pivot_table averages each cell (one value each here, so the average is the value)

Tasks

  1. Predict the order of the months in the printed table.
  2. Select ▶ Run / Edit and run the code.
  3. Delete the reindex line and run again. In what order are the months now, and why?

Result on the lecture laptop (select to reveal)

Jan to Jun, the order given to reindex. Without it the months come out alphabetically (Apr, Feb, Jan, Jun, Mar, May): pivot_table sorts the index, and month names sort as text.

sales = pd.DataFrame({ "month": ["Jan", "Feb", "Mar", "Apr", "May", "Jun"] * 2, "region": ["Visayas"] * 6 + ["Luzon"] * 6, "sales": [10, 12, 11, 14, 16, 18, 20, 19, 22, 21, 25, 27], }) wide = sales.pivot_table(index="month", columns="region", values="sales") wide = wide.reindex(["Jan", "Feb", "Mar", "Apr", "May", "Jun"]) print(wide)

The five-second test

The finished dashboard is shown to a person for five seconds. If that person cannot state the headline afterward, the dashboard has failed, regardless of its appearance.

Review question

Question (select to reveal the answer)

An office dashboard shows 14 charts — every metric the team collects. No one looks at it anymore. What is the root problem?

A · Needs more charts for completeness
B · It answers no particular question, so it answers nothing
C · Wrong font
D · Dashboards always fail

B: completeness is not communication.

Fourteen co-equal charts give the reader fourteen decisions about where to look, so the reader makes none. Reduced to the panels that answer one question, the dashboard again merits thirty seconds of attention.

Break

  Five minutes

Next: assembling the argument panel by panel.

Part B

Dashboards

Small charts, placed deliberately.

Week 8 covered drawing one chart with pandas' .plot(). This part puts several small charts on one page and decides which goes where.

Small multiples

Small multiples: a grid of one-point charts

Small multiples are a grid of small charts side by side. In matplotlib the figure is the whole picture and each axes is one chart panel inside it (despite the name, it means one plotting area, not the x and y lines). plt.subplots(rows, cols) creates a grid of axes. The governing rule: each panel makes exactly one point.

tight_layout()

One call that prevents titles and labels from overlapping. It belongs on every multi-panel figure.

# sales, wide: the monthly sales table (previous slides) totals = sales.groupby("region")["sales"].sum() fig, (a1, a2) = plt.subplots(1, 2, figsize=(10, 3.5)) wide.plot(ax=a1, marker="o") a1.set_title("Trend by region") totals.plot.bar(ax=a2) a2.set_title("Total by region") plt.tight_layout() plt.show()
  • sales.groupby("region")["sales"].sum()the half-year total of each region: Luzon 134, Visayas 81
  • plt.subplots(1, 2, …)two panels side by side: direction on the left, level on the right
Output

Two panels: direction on the left, level on the right

One figure with two panels. Left, titled Trend by region: two lines with a dot per month from Jan to Jun, Luzon in blue rising from 20 to 27 and Visayas in orange rising from 10 to 18, with a legend. Right, titled Total by region: two bars, Luzon at 134 and Visayas at 81, with the region names written sideways.
Complementary panels

Trend and total answer different questions

The lab's pair: a line chart shows direction (Visayas climbing fast), a bar chart shows level (Luzon still far ahead). Either alone is incomplete.

Only the line

"Visayas is growing faster": 80% (10 → 18) vs Luzon's 35% (20 → 27). True, but misleading alone.

Only the bars

"Luzon dominates, 134 vs 81." Also true, and also misleading alone: Visayas went from half of Luzon's monthly sales (10 vs 20) to two-thirds (18 vs 27).

Together

"Luzon leads; Visayas is growing more than twice as fast." With both, the reader has the complete picture.

Chart choice

Choosing the chart from the question

Reader's questionChart that answers itWhy
How did it change over time?Line chartThe eye follows a line left to right, like time
Which group is biggest?Bar chart, sortedBars start at zero, so their lengths compare fairly
How are the values spread out?Histogram or box plot (week 7)Shows the shape: the bulk, the tail, the outliers
Do two numbers move together?Scatter plot (week 8)One dot per record; a pattern in the cloud is a relationship
What is one headline number?A big number tile (KPI)A chart of one number is only a slower way to read it
Exercise · 3 min

Layout directs the reader's scan

Left-to-right, top-to-bottom — the Z-path, the zig-zag route a reader's eye takes across a page. Content at the top left is read; content at the bottom right is often skipped. Within a chart, sorting serves the same purpose.

  • totals.sort_values(ascending=False)reorder the values; ascending=False means biggest first
  • \ at the end of a line"this line continues on the next one"
  • .plot.bar(ax=ax)draw the sorted values as bars on the panel ax
  • The bars on the righta text sketch of the chart's order, not printed output; the lab adds a third region, Mindanao (108)

Tasks

  1. Predict the order of the three bars.
  2. Select ▶ Run / Edit and run the code.
  3. Remove .sort_values(ascending=False) and run again. What must the reader now do?

Result on the lecture laptop (select to reveal)

Luzon (134), Mindanao (108), Visayas (81): the order is the ranking. Without sorting, the bars follow the Series’ own order (Luzon, Visayas, Mindanao), and the reader must compare heights to find the ranking.

import matplotlib.pyplot as plt totals = pd.Series({"Luzon": 134, "Visayas": 81, "Mindanao": 108}) # the lab's totals fig, ax = plt.subplots() totals.sort_values(ascending=False).plot.bar(ax=ax) plt.show()

Sorted rather than alphabetical

Alphabetical order leaves the ranking to the reader. Sorted order is the ranking and is read at a glance.

Output

Largest first: the order is the ranking

the bars step down from left to right, Luzon 134, Mindanao 108, Visayas 81, so the reader sees the ranking without comparing bars. This uses the lab's three-region totals and a blank fig, ax = plt.subplots(); it has no title or axis names yet, which the lab adds.

Bar chart of three regions sorted from biggest to smallest: Luzon 134, Mindanao 108, Visayas 81, with the region names written sideways under the bars.
Layout guidelines

Placing the panels

Interactive dashboards

Big numbers, filters and interactivity

Part C

Chart details

Titles, ink and color.

Parts A and B covered the panels and their order. This part covers the words, lines and colours on each chart.

Exercise · 3 min

The title states the finding, not the variable

"Sales over time" describes the axes. "Luzon sales grew 35% over the half-year" states the finding, which a busy reader receives even without reading further. That sentence is a headline (a finding-title): a title that states what the chart shows, with its number.

  • ax.set_title("...")ax is one chart panel; .set_title() writes the text above it
  • # not: ...a comment: Python ignores everything after # on a line
  • 35%from the chart: (27 − 20) ÷ 20 = 0.35

Tasks

  1. Check the title’s 35% against the data before running.
  2. Select ▶ Run / Edit and run the code.
  3. Visayas went from 10 to 18. Write and run its finding-title.

Result on the lecture laptop (select to reveal)

(27 − 20) ÷ 20 = 35%, so the title can be checked on the line. For Visayas: (18 − 10) ÷ 10 = 80%, so “Visayas sales grew 80% over the half-year”, a faster rise from a lower level.

import matplotlib.pyplot as plt months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun"] luzon = [20, 19, 22, 21, 25, 27] fig, ax = plt.subplots() ax.plot(months, luzon, marker="o") ax.set_title("Luzon sales grew 35% over the half-year") # not "Sales" plt.show()

Verifiability

A finding-title must be checkable from the chart below it. If the line shows 20 → 27, "grew 35%" verifies; "will dominate next year" does not belong in a title.

Output

A title that can be checked against the line

the title's claim can be checked on the line below it: Jan 20, Jun 27, and (27 − 20) ÷ 20 = 35%. This is the lab's Luzon line (ax.plot(months, luzon, marker="o")) plus the title. The y axis starts at 19, not 0, because matplotlib fits the axis to the data, so the rise appears steeper than it is (week 9).

Line chart of Luzon sales from Jan to Jun with a dot per month, rising from 20 to 27 with a dip in Feb and Apr, titled Luzon sales grew 35% over the half-year; the y axis runs from 19 to 27.
Chart titles

A title is a sentence, not a label

"Budget vs Duration" names the axes, which the axes already do. The most-read text on the chart should state what the chart shows.

Test: the title alone

A title that conveys nothing true when read in isolation is a label.

# label — wastes the best line "Budget vs Duration" # finding — earns it "The largest projects take twice as long: 269 vs 119 median days" # and for the concentration chart "48 of 4,841 contractors hold 27.6% of flood control spending"
Colour consistency

Consistent colour makes a dashboard readable

Worked example

Removing elements that do not carry the message

Gridlines, borders, tick marks, legends, background fills and drop shadows all consume attention. None of them is the finding. Decluttering is deleting them.

The subtraction pass

Once the chart is correct, elements are removed one at a time. If the message remains clear, the element stays removed.

  • ax.spines[["top", "right"]].set_visible(False)remove the top and right borders
  • ax.grid(axis="y", alpha=0.3)faint horizontal gridlines only
  • ax.tick_params(length=0)no tick marks
  • ax.legend(frameon=False)a legend without a box
# wide: the monthly sales table fig, ax = plt.subplots() wide.plot(ax=ax, marker="o") # the default plt.show() fig, ax = plt.subplots() wide.plot(ax=ax, marker="o") ax.spines[["top", "right"]].set_visible(False) # the four lines ax.grid(axis="y", alpha=0.3) ax.tick_params(length=0) ax.legend(frameon=False) plt.show()
Output

The chart before and after the four lines

Default pandas line chart of Luzon and Visayas sales, Jan to Jun: a full box border, tick marks on both axes, and a legend in a white box headed region.The same chart after the four decluttering lines: no top or right border, faint horizontal gridlines, no tick marks, and a legend with no box and no heading.
Case study

The flood data, loaded from the course API

The rest of Part C applies the chart details to the flood data: display precision, an annotated concentration chart, and a guard for the incomplete final year.

Why not pd.read_csv(url)?

pandas downloads with urllib, which this site’s bot protection answers with 403 Forbidden. requests gets through.

The browser cannot download the data, so the flood blocks have no Run button; the companion notebook runs them.

import io, requests url = "https://portal.latarak.com/api/flood/export.csv" df = pd.read_csv(io.StringIO(requests.get(url, timeout=60).text)) print(df.shape) (34079, 15)
  • requests.get(url)download the whole table in one request
  • (34079, 15)34,079 projects, 15 columns
Rounding for display

Unusable precision is noise

₱267,688,008,746.34 (Region III's total) is accurate but hard to read. ₱267.7B is accurate enough and is read instantly.

Keep full precision in the data

Rounding happens only at display, so the calculation stays exact and the label stays legible.

  • df.budget.sum()add up the whole budget column: 1.6 trillion pesos, printed with every digit
  • 1e121 followed by 12 zeros (a trillion); 1e9 is a billion
  • f"PHP {total/1e12:.2f}T"an f-string: the value in { } is dropped into the text; :.2f means "2 decimal places"
  • 'PHP 1.60T'the label a human reads; the quotes mean it is now text, not a number
# in the notebook: full precision total = df.budget.sum() print(total) # on the chart: human scale print(f"PHP {total / 1e12:.2f}T") 1600088782392.83 PHP 1.60T
Data-ink

Non-data elements compete with the data

Annotation

Writing the conclusion on the chart

An annotation is a short note written on the chart, next to the mark it explains. The reader should not have to search the marks for the main point.

One per chart

Two annotations usually indicate that the chart carries two messages and should be split.

  • .cumsum() / c.sum()the running share of all the money, contractors largest first (week 9)
  • ax.annotate(text, xy=…, xytext=…)the note, the point it explains, and where the text sits
  • ax.axhline(0.276, …)a dashed reference line at the 27.6% the note quotes
c = df.groupby("contractor").budget.sum().sort_values(ascending=False) share = c.cumsum() / c.sum() fig, ax = plt.subplots() ax.plot(range(1, len(share) + 1), share.values) ax.annotate("48 firms = 27.6% of value", xy=(48, 0.276), xytext=(400, 0.45), arrowprops=dict(arrowstyle="->", color="#555")) ax.axhline(0.276, ls="--", c="#999", lw=1) # a reference line plt.show()
Chart layers

Data, then emphasis, then explanation

Pre-attentive attributes

Properties the eye detects before reading

A pre-attentive attribute is a visual property the eye picks out in a split second, before any conscious reading: colour, size, position, length, shape. The emphasis layer uses exactly this.

One red apple in a bowl of green ones is seen without searching, and the finding should be highlighted in the same way.

Count the 3s

65173660142313703557
37934077201250735105
16818148078587695220
05916888934153173373
27920935253003725755

The same block, highlighted

65173660142313703557
37934077201250735105
16818148078587695220
05916888934153173373
27920935253003725755

Same digits, same 15 threes

The first block needs a careful scan, line by line. In the second, colour performs the search. One highlighted bar has the same effect on a grey chart.

Color and meaning

One color per category across all panels

If Visayas is amber in panel one, it is amber in every panel. Consistent color lets the reader learn the mapping once and apply it to the rest of the dashboard.

Inconsistent color

Every panel requires the legend to be re-learned, and attention goes to decoding instead of understanding.

Decorative color

Rainbow bars where color encodes nothing teach the reader to ignore color, including where it carries meaning.

Accessibility

Red–green pairs fail for many readers. Palettes that remain legible in grayscale, or double encoding with position and labels, are preferred.

Colour vision deficiency

Roughly 1 in 12 men cannot distinguish red from green

In a class of 40 that is two or three people. On a public dashboard it is thousands. Red-green is both the most common deficiency and the most common default palette.

Words in the code

sns
seaborn, a plotting library built on matplotlib
palette
the list of colours charts use, in order
cmap
colour map: colours for a range of numbers
sequential
light to dark for low to high
diverging
two colours meeting at a neutral middle

Encode twice

Colour plus shape, or colour plus direct labels. The chart then also remains legible in greyscale printing, which is a related problem.

# safe palettes sns.set_palette("colorblind") cmap="viridis" # sequential cmap="RdBu_r" # diverging, safe # NOT safe # red/green categorical pairs # "jet" / rainbow for magnitude # test it: print in greyscale. # if the message dies, so does it # for ~8% of your readers
Contrast and size

Legibility on a laptop versus a projector

Default matplotlib text is sized for a notebook viewed at arm’s length. Projected, it is unreadable from the third row.

A one-line adjustment

context="talk" scales every text element at once — titles, labels, ticks and legend together.

sns.set_theme(context="talk") # paper < notebook < talk < poster # and check the things that stay small ax.tick_params(labelsize=12) # thin grey gridlines vanish on a # projector — darken or drop them ax.grid(alpha=0.4, linewidth=0.8)
Week 9 rules at scale

A dashboard multiplies whatever it carries

"A misleading chart in a notebook misleads one analyst. The same chart on a dashboard, refreshed daily and trusted by default, misleads an entire organization repeatedly."
Zero-based bars, full windows, rates over raw counts: the effects accumulate
Errors at scale

Dashboards repeat errors as well

A dashboard is not a report with more charts. It is checked repeatedly, with no analyst present to explain it.

The elapsed-time error, automated

Spend per year drops from ₱369.3B (2024) to ₱196.2B (2025), and 2026 has one project. A year still being filled in when the file was exported looks like a collapse: week 8’s progress-vs-year lesson (less time, not less work). In a report it is caught once. On a dashboard it redraws every day, and every viewer reaches the same wrong conclusion.

counts = df.groupby("year").size() print(counts.tail(3)) # guard the incomplete period before charting latest = counts.index.max() if counts[latest] < counts.median(): print(f"{latest} is partial: {counts[latest]} project(s)") year 2024 5553 2025 3475 2026 1 dtype: int64 2026 is partial: 1 project(s)
  • df.groupby("year").size()projects per year: 2024 has 5,553, 2025 has 3,475, 2026 only 1
  • counts[latest] < counts.median()a simple guard: a final year far below the usual count is probably incomplete
  • print(…)say so on the chart, or drop the year, before anyone reads a decline into it
One dashboard, one question

Three questions require three dashboards

Layout grid

Big number, then trend, then breakdown, then detail

Four zones, in reading order: the KPI tile (the big number), the trend, the breakdown, the detail table. It moves from "what" to "why" in the order a reader’s questions arise.

Detail last, and optional

The least-read table belongs at the bottom, so that no reader must scroll past it to reach the main point.

┌────────────┬───────────────────┐ │ PHP 1.60T │ spend per year │ │ 11 years │ (line, 2016-24) │ ├────────────┴───────────────────┤ │ by region (bar, sorted) │ ├────────────────────────────────┤ │ top contractors (table) │ └────────────────────────────────┘ # headline -> trend -> breakdown -> detail
Presentation

The slide and the talk have different roles

If every word is on the slide, the audience reads ahead and stops listening. The chart carries the evidence; the speaker carries the argument.

State the title, then pause

An audience needs four or five seconds to read a new chart before the speaker continues. The pause feels long to the speaker but is barely enough for the audience.

# per chart, out loud: 1. "This is spend per year, 2016 to 2024." (what) 2. ...pause. let them look. 3. "It more than triples from 2021 to 2024." (the point) 4. "Which raises the question of..." (the bridge) # what / pause / point / bridge
Answering unknowns

Stating the limits of the evidence

Presenters are asked questions the data cannot answer. Guessing is the only response that damages credibility.

"I don't know" is a complete answer

It is followed by what would be needed to find out. This shows where the evidence ends, which is the central skill.

# the three legitimate answers "I don't know — the dataset has no outcome field, so I can't say whether flooding decreased." "That's outside what I measured. I looked at awarded value, not disbursement (money paid out)." "I'd have to check — let me come back to you." # never: "probably", "I think maybe"
Six common failures

Six common failures in data storytelling

FailureLooks likeRemedy
No audience chosenMethod-heavy and also shallowReader named before writing
Everything includedFifteen charts, no argumentThree beats, three charts
Labels as titles"Budget vs Duration"Title written as a sentence with the finding
Buried leadConclusion on the last slideFinding first; method underneath
Unmarked caveatsA partial year drawn as a collapseLimit shown on the chart, not in the notes
Talking over the chartAudience reading while the speaker talksTitle, pause, point, bridge
Exercise · 8 min

Building a three-beat story

1 · Choose a finding

Any verified result from weeks 4–9 that can be stated in one sentence with a number.

2 · Write three titles

Setup, tension, resolution — as full sentences. Do this before making any chart.

3 · Make exactly three charts

One per title. Needing a fourth means the story has two points; choose one.

4 · Hand it over silently

Give it to someone without speaking. Anything that seems to need spoken explanation is what the chart fails to say.

Review question

Question (select to reveal the answer)

A dashboard shows spend per year, and the latest bar is half the previous one. The export was taken mid-year. What is the right fix?

A · Leave it — the number is accurate
B · Exclude or visibly mark the incomplete period, and label it
C · Scale the partial year up to a projected annual figure
D · Remove the year axis so the drop is less obvious
B. The bar is accurate and the chart is still misleading, because a reader assumes comparable periods. C invents data. D hides the problem instead of fixing it. Mark it (greyed, hatched, annotated) or drop it. On a dashboard this matters more than in a report, because the error is redrawn every day with no analyst present.
Review question

Question (select to reveal the answer)

Which chart title serves its purpose?

A · "Budget vs Duration"
B · "The largest projects take twice as long: 269 vs 119 median days"
C · "Figure 3: Analysis of Project Data"
D · "Duration (days) by Budget (PHP)"
B. It is a sentence, it contains the finding, it carries the numbers, and it survives being screenshotted alone. A and D label the axes, which the axes already do. C conveys nothing. The title is the most-read text on any chart and should carry the message.
Review question

Question (select to reveal the answer)

Same chart, four titles. Which one belongs on a dashboard?

A · "Sales"
B · "Figure 3"
C · "Luzon leads, but Visayas grew 80% since January to Luzon's 35%"
D · "Regional Sales Performance Overview Dashboard Chart"

C: it states the finding for the reader.

A and B label; D decorates; C reports, and a reader can verify it against the lines below. The title is the one part of a chart every reader reads, so it should state the finding.

This week's lab

Building a narrative dashboard

Six months of sales, two regions. The lab pivots the data, pairs a trend panel with a totals panel, sorts the bars, and adds finding-titles that others can verify. ~45 minutes.

Lab tasks

pivot_table, plt.subplots(1, 2), sorted plot.bar(), tight_layout(), and finding-titles.

Optional extension

A full 2×2 dashboard, and one consistent color per region across every panel.

Summary

Four main points

Glossary

This week's words, one line each

Key terms

audience
the particular reader addressed; chosen first
narrative arc
the story's order: context → contrast → consequence
headline (finding-title)
a title that states the finding, with its number
annotation
a note on the chart, next to the mark it explains
chart choice
picking the chart from the question: line for time, bars to compare
pre-attentive attribute
colour, size, position, length: seen before reading
decluttering
deleting everything that does not help the message
colour meaning
one colour per thing, the same everywhere; grey for the rest
dashboard
one screen of a few charts that answers one question
KPI (key performance indicator)
the big headline number a dashboard tracks
small multiples
a grid of small charts, one point each
filter
a control that narrows what every panel shows
interactivity
charts that respond: hover, click, zoom
pivot table
rows = one column's values, columns = another's
figure & axes
the whole picture & one chart panel inside it
legend
the key saying which colour is which

Also new today

curse of knowledge
forgetting that the reader lacks the analyst's knowledge
n
how many things were counted
long / wide table
one row per month-and-region / one row per month
Z-path / F-pattern
how eyes scan a page: from the top-left
data-ink
the ink that actually draws numbers
spines
the four border lines around a chart
alpha
see-through-ness, 0 (invisible) to 1 (solid)
f-string
f"...{x}...": text with a value dropped in
1e12
scientific notation: 1 followed by 12 zeros
palette / colour map
the colours used for groups / for a range of numbers
sequential / diverging
light-to-dark / two colours meeting in the middle
partial period
a year or month not yet over; mark it or drop it
Readings

Preparation for next week

Next week

Ethics & privacy

In data and analytics: consent, anonymity, bias and the law, and what may be done with what can be done.

DS 227 · Knowledge Discovery in Data