Command Palette

Search for a command to run...

Hectal
Back to the lesson: Topic 17.1 — Exploring vs Explaining
Data Visualization · Example 1 of 2

The same year, to explore and to explain

Winter here means December, January and February (the three coldest months in the data); summer is June to August. The headline is built from the data, so it cannot disagree with the chart.

A dashboard is for exploring: many questions, asked by someone who wants to ask them. A story is for explaining: one point, told to someone who did not ask. The finding comes first, and the audience decides how much you must say.

Change the code and press Run (Ctrl+Enter). Predict what will happen first, then break it on purpose and read what changes. Your edits are saved and match the lesson page.

Ready for more? This phase has 6 hands-on exercises with automatic checks.

Practice questions

Write the code in the editor, run it, then open the model answer to compare.

01

Write ebikeFinding(rows) that returns "E-bikes grew from X% of rides in January to Y% in December" with one decimal, or null when either month has no rides. Test it on the real daily rows and on an array with no January days.

02

Lina's page must also say something about the busiest day. Write the headline for it from the data and check it against the chart's tallest point.

Explain it without notes

01

What is the difference between an exploratory and an explanatory visualization? Give an example of each at Lumen Bikes.

02

Why should the headline state the finding, rather than name the chart?

03

Why does the audience change what you build? Compare the city website visitor with Priya.

04

Why can a headline writer fail without any error, and how do you guard against it?

The same year, to explore and to explain

Preview

Press Run to see the page.

Console

Nothing logged yet.

Expected console output

Explore: 4 charts, 4 questions you can ask, 0 findings stated
Summer averages 3634 rides a day, winter 1480
Explain: 1 chart, 1 finding in its title: A summer day carries 2.5 times the rides of a winter day