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
Structuring a story for a reader who does not know the analysis.
Small multiples, layout and order: a sequence of charts that argues one point.
Finding-titles, decluttering and consistent color.
Week 9 ended with one defensible sentence. This week addresses how to communicate that sentence to a busy reader.
A dashboard is not a collection of charts but an argument with a layout.
The particular person or group who will read the chart, decided before writing.
e.g. a fellow analyst, a newspaper editor, the general public
The order a story moves in. Here: three beats, context → contrast → consequence.
e.g. "spend grew" → "48 firms hold a quarter" → "worth asking why"
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"
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"
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
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
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
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
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
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
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
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
A chart that responds to the reader: hover for exact values, click to filter, zoom in.
e.g. hovering a bar shows "Luzon: 134"
A reshaped table: one row per value of one column, one column per value of another.
e.g. rows = months, columns = regions, cells = sales
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
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
Research on computer systems that help managers decide.
Early “executive information systems”, limited by unreliable data.
Kaplan and Norton’s balanced scorecard; dashboards become popular later that decade.
Founded by three Stanford researchers to make charts without code.
Like a car’s dashboard: a few gauges, each read at a glance, all serving one task.
A KPI (key performance indicator) is one headline number a dashboard tracks, such as total spend this year.
SourceWikipedia: Dashboard (computing); Balanced scorecard; Tableau Software
Salesforce’s price for Tableau in 2019, its largest purchase to that date.
Used in sales, operations, human resources, IT and marketing.
Power BI Desktop, Microsoft’s dashboard tool, is free to download and use.
The tools differ; the design rules in this deck apply to all of them.
SourceWikipedia: Tableau Software; Wikipedia: Dashboard (computing); Microsoft: Power BI Desktop
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.
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.
pd.__version__the installed pandas: 3.0.5 on the laptop, 2.2.0 in the browsert.dtypeseach column’s type: str on the laptop, object in the browserDesigning 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.
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.
"Obviously the June dip is the enrollment period — everyone knows that."
An unexplained dip, a legend with unclear labels, and no stated relevance.
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.
"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.
Most unclear communication is written for no particular reader and is therefore suited only to the writer.
n, the aggregation, the caveats. An analyst will check the work, so the method must make that possible.
What can be said, and what creates legal risk. The limit matters more to an editor than the number.
One number, one comparison, no method. A link to the notebook serves readers who want more.
The common failures are the analyst version given to the public (it goes unread) and the public version given to the editor (the risk cannot be assessed). Both come from not choosing an audience.
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.
It usually takes two steps to reach something relevant to a reader, and the second step tests whether the evidence extends that far.
What the reader needs to know first: "Two regions, six months of sales."
The week-9 comparison, which shows what changed or differs: "Luzon leads; Visayas is climbing faster."
Why it matters / what to watch: "If Visayas keeps growing twice as fast, the second half of the year is where the gap closes."
A narrative arc is the order a story moves in. The middle beat is the finding sentence built previously; storytelling adds context before it and a consequence after it.
A joke has a set-up, a twist and a punchline, and the twist fails without the set-up.
The week-9 caveat stays with the finding, in the subtitle or a footnote, on the chart.
The flood story in three beats.
Same three beats as the last slide under their storytelling names: context = setup, contrast = tension, consequence = resolution.
| Beat | The chart | The sentence |
|---|---|---|
| Setup | Total spend per year, 2016–2024 | ₱1.6 trillion over eleven years — ₱145.5B a year. |
| Tension | Contractor share, sorted descending | 48 of 4,841 firms hold 27.6% of it. |
| Resolution | The same, with the caveat on the chart | Concentration is structural, not evidence of conduct — and it is a question for the agency. |
Three charts, not fifteen. Most data stories fail by showing everything the analyst found rather than the three things the reader needs to follow the argument.
The analysis proceeds in order: source, clean, explore, conclude. The reader needs the opposite order.
It is required, because it makes the claim checkable, but placed first it loses the reader before the main point.
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, salesdf.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)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.
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.
An office dashboard shows 14 charts — every metric the team collects. No one looks at it anymore. What is the root problem?
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.
Adding a chart has a cost: it dilutes every other chart. Panels are a limited resource.
The question is written first, and any panel that does not serve it is removed.
Next: assembling the argument panel by panel.
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 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.groupby("region")["sales"].sum()the half-year total of each region: Luzon 134, Visayas 81plt.subplots(1, 2, …)two panels side by side: direction on the left, level on the right
the left panel shows direction: both lines climb, Visayas (orange) from 10 to 18, Luzon (blue) from 20 to 27. The right panel shows level: Luzon's bar (134) is well above Visayas's (81). The sideways region names under the bars are pandas' default.
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.
"Visayas is growing faster": 80% (10 → 18) vs Luzon's 35% (20 → 27). True, but misleading alone.
"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).
"Luzon leads; Visayas is growing more than twice as fast." With both, the reader has the complete picture.
| Reader's question | Chart that answers it | Why |
|---|---|---|
| How did it change over time? | Line chart | The eye follows a line left to right, like time |
| Which group is biggest? | Bar chart, sorted | Bars 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 |
Chart choice means starting from what the reader asks. The lab pairs a line (the trend question) with bars (the size question) because the dashboard asks both.
Only for two or three parts of one whole. Lengths are compared far more accurately than angles, so a sorted bar chart is usually better.
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.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.
Alphabetical order leaves the ranking to the reader. Sorted order is the ranking and is read at a glance.
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.
The most important chart goes where the scan starts. The others support it.
Related panels adjacent; unrelated ones separated by space. Proximity implies relationship.
White space separates content, as punctuation does. A cramped dashboard is hard to read.
The lab's optional extension is a 2×2: trend, totals, a distribution and one comparison, each with its own finding-title and arranged by these guidelines.
If the 2×2 still makes its point printed in grayscale on one page, the layout is effective.
A KPI (key performance indicator) is one headline number the dashboard tracks, printed large: "₱1.60T, 11 years". It answers "how much" before any chart is read.
A filter is a control, such as a drop-down or a date slider, that narrows the data every panel shows. Selecting "Region VII" redraws all charts for Region VII only.
Interactivity means the chart responds to the reader: hovering shows an exact value, clicking a bar filters, and zooming shows a period. Tools such as Tableau, Power BI or Looker Studio add it without code.
A car dashboard shows a few gauges (speed, fuel, warning lights), each read at a glance and all serving safe driving, not the engine's full sensor log.
Most readers never use a filter. The view shown before any click is, for them, the whole dashboard, so it needs the headline, the finding-titles and the caveats.
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.
"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 lineResult 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.
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.
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).
"Budget vs Duration" names the axes, which the axes already do. The most-read text on the chart should state what the chart shows.
A title that conveys nothing true when read in isolation is a label.
Region III is the same colour in every panel. A reader learns it in the first chart and reuses it in the rest.
Only the series under discussion is coloured; everything else is grey. Emphasis is subtraction, not addition.
If Region III is blue on panel 1 and orange on panel 3, the reader must re-learn the legend and may stop trying.
Colour meaning is colour used on purpose. The guideline that makes it automatic: define the colour mapping as a dict at the top of the notebook (a dictionary, a lookup of name → value such as {"Luzon": "#2563eb", "Visayas": "#d97706"}) and pass it to every chart, rather than letting the library choose per figure.
Gridlines, borders, tick marks, legends, background fills and drop shadows all consume attention. None of them is the finding. Decluttering is deleting them.
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 bordersax.grid(axis="y", alpha=0.3)faint horizontal gridlines onlyax.tick_params(length=0)no tick marksax.legend(frameon=False)a legend without a box

left, the default line chart (wide.plot(ax=ax, marker="o")); right, the same chart after the four lines: no top or right border, faint horizontal gridlines, no tick marks, no legend box. One unexpected result: calling ax.legend() again also dropped the legend's region heading.
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.
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.
requests.get(url)download the whole table in one request(34079, 15)34,079 projects, 15 columns₱267,688,008,746.34 (Region III's total) is accurate but hard to read. ₱267.7B is accurate enough and is read instantly.
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 digit1e121 followed by 12 zeros (a trillion); 1e9 is a billionf"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 numberHeavy gridlines, chart borders, redundant legends, 3-D effects, background colors. An element whose removal loses nothing is noise.
"Luzon" is placed at the end of Luzon's line instead of in a separate legend.
Bold color for the line that carries the story; gray for context.
This is Edward Tufte's data-ink idea in practice: the ink that draws numbers should be most of the ink on the chart. Every decoration uses part of the reader's thirty seconds.
Decluttering a chart is like editing an email, where removing words that do not change the meaning makes the message clearer.
For each element: if its removal loses no information for the reader, it is removed.
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.
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 sitsax.axhline(0.276, …)a dashed reference line at the 27.6% the note quotesEvery mark, in one neutral colour. The shape is settled before anything else.
Only what the sentence is about is coloured or darkened. Everything else goes grey.
Title, annotation, reference line, source note. The words that make it stand alone.
Built in this order, a chart is complete at each stage. Built in reverse, with styling first, effort goes into decorating what may be the wrong chart.
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.
65173660142313703557
37934077201250735105
16818148078587695220
05916888934153173373
27920935253003725755
65173660142313703557
37934077201250735105
16818148078587695220
05916888934153173373
27920935253003725755
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.
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.
Every panel requires the legend to be re-learned, and attention goes to decoding instead of understanding.
Rainbow bars where color encodes nothing teach the reader to ignore color, including where it carries meaning.
Red–green pairs fail for many readers. Palettes that remain legible in grayscale, or double encoding with position and labels, are preferred.
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.
Colour plus shape, or colour plus direct labels. The chart then also remains legible in greyscale printing, which is a related problem.
Default matplotlib text is sized for a notebook viewed at arm’s length. Projected, it is unreadable from the third row.
context="talk" scales every text element at once — titles, labels, ticks and legend together.
"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
The week-9 honesty rules apply unchanged. What changes is the reach of any violation.
The design assumes the reader sees only titles and shapes. If that reading is honest, the dashboard is honest.
A dashboard is not a report with more charts. It is checked repeatedly, with no analyst present to explain it.
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.
df.groupby("year").size()projects per year: 2024 has 5,553, 2025 has 3,475, 2026 only 1counts[latest] < counts.median()a simple guard: a final year far below the usual count is probably incompleteprint(…)say so on the chart, or drop the year, before anyone reads a decline into it"Where does flood control money go?" not "Flood Control Dashboard". The title constrains what belongs on it.
A chart that does not help answer the title question belongs elsewhere. The criterion is relevance, not interest.
Readers scan in an F (across the top, then down the left side), much like the Z-path. The most important number goes where the eye lands first, not wherever the grid had space.
The most common dashboard failure is a collection of everything measurable: a data dump with a grid layout that appears thorough but communicates little.
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.
The least-read table belongs at the bottom, so that no reader must scroll past it to reach the main point.
If every word is on the slide, the audience reads ahead and stops listening. The chart carries the evidence; the speaker carries the argument.
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.
Presenters are asked questions the data cannot answer. Guessing is the only response that damages credibility.
It is followed by what would be needed to find out. This shows where the evidence ends, which is the central skill.
| Failure | Looks like | Remedy |
|---|---|---|
| No audience chosen | Method-heavy and also shallow | Reader named before writing |
| Everything included | Fifteen charts, no argument | Three beats, three charts |
| Labels as titles | "Budget vs Duration" | Title written as a sentence with the finding |
| Buried lead | Conclusion on the last slide | Finding first; method underneath |
| Unmarked caveats | A partial year drawn as a collapse | Limit shown on the chart, not in the notes |
| Talking over the chart | Audience reading while the speaker talks | Title, pause, point, bridge |
Each of these is a decision made by default rather than deliberately. The discipline consists of deliberate choice: which reader, which three charts, which sentence, which limit.
Any verified result from weeks 4–9 that can be stated in one sentence with a number.
Setup, tension, resolution — as full sentences. Do this before making any chart.
One per title. Needing a fourth means the story has two points; choose one.
Give it to someone without speaking. Anything that seems to need spoken explanation is what the chart fails to say.
Step 4 is the main test. Every sentence added aloud is a missing title, label or annotation.
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?
Which chart title serves its purpose?
Same chart, four titles. Which one belongs on a dashboard?
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.
All the titles, pasted into a document without the charts, should read as a summary of the analysis.
The title is written last, once the chart's result is known.
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.
pivot_table, plt.subplots(1, 2), sorted
plot.bar(), tight_layout(), and finding-titles.
A full 2×2 dashboard, and one consistent color per region across every panel.
The question comes first; every panel serves it or is removed.
Trend and level together are more informative than either alone; layout follows the Z-path.
"Grew 35%" rather than "Sales", always verifiable from the chart.
Data-ink up, decoration out, one color per meaning throughout.
In one sentence: design for the thirty-second read, because most readers give no more.
Finding, verifying and telling a story are now covered. Week 11 asks whether a given analysis should be done.
f"...{x}...": text with a value dropped inCole Nussbaumer Knaflic, Storytelling with Data — chapters on decluttering
and focusing attention. The library has it; the blog
(storytellingwithdata.com) covers the same ground free.
Any summary of Tufte's data-ink ratio. Then remove one element from a chart made this term and check whether it is missed.
Both are linked on the course page beside this deck and the lab.
Decluttering advice is easier to apply after working with tight_layout() in the lab.
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