Showing it
Last updated
A capstone report carries its story in about five charts. In this lesson you'll choose them from everything you drew while exploring and answering, make each one say its finding in its title, check them for colour blindness and honesty, and write alt text so readers who can't see them still get the point.
By the end of this lesson you can
- Choose a few charts that carry the story, one point each
- Review each chart for colour, accessibility and honesty
- Write alt text that gives a chart's finding
Five charts
By now you have dozens of charts. The report needs about five, one for each point in its story (10.1). For the rice question, they might be:
- The national picture: the national real price over time, both kinds of rice, with the trend.
- Which regions were hit hardest: each region's change between two chosen periods, as a sorted bar chart.
- The gap: each region's real price against the national average, as small multiples or a dot plot.
- The season: the seasonal pattern from the decomposition, by month.
- How sure: an interval for the key comparison, or the answer with and without the odd months.
Pick yours by writing the report's points first, as one sentence each, and then the chart that shows each one best (6.4). A chart that doesn't support a point goes in the appendix, or nowhere.
The review
Go through each chart, and tick each item only when every chart passes:
Show the five charts to someone who hasn’t seen your work and ask them what each says. Where their answer isn’t your title, change the chart.
Save each final chart as SVG (6.10) in reports/, from the notebook that makes it, so a rerun remakes it.
Alt text
Alt text is the text read aloud in place of an image by screen readers, and shown when the image doesn't load. For a chart, it should give what a sighted reader takes from it: the finding, and the main numbers, not a description of the shapes.
| Alt text | Why | |
|---|---|---|
| Too little | Chart of rice prices. | Says what it is, not what it shows. |
| Describes shapes | Line chart with many lines in different colours, rising from left to right with some dips. | The reader learns what it looks like, not what it means. |
| Gives the finding | Real well-milled rice prices rose in every region from 2023 to 2024; the steepest rises were in [regions], and the smallest in [region]. | The same point a sighted reader gets, in one sentence. |
In a Quarto or Markdown report, alt text goes in the square brackets: . For a complex chart, add the table of numbers behind it in the appendix, so every reader can check the detail.
Check what you learned
Sources
Every example on this page was run with Python 3.14, and its output and error messages are copied from it. These pages cover the same ground in more depth.
- W3C Web Accessibility Initiative: Complex images: alt text for charts and graphs: a short description, with the data available in full
- matplotlib: Choosing colormaps: sequential, diverging and colour-blind-safe colour maps
- Machado, Oliveira and Fernandes, A physiologically-based model for simulation of color vision deficiency (IEEE TVCG, 2009): simulating colour blindness, as in 6.7