Command Palette

Search for a command to run...

Hectal
Phase 18: Interviews and Capstone
Data Visualization · Exercise 4 of 5 PreviousNext
Advanced

Timed: find the NaN (10 minutes)

Interview-style task, about 10 minutes. The chart draws three days from a messy export, and one value is the text n/a, so a bar gets a NaN height and the console shows an error.

Fix it so two bars are drawn, no attribute holds NaN, and #note says 1 row skipped. Say out loud how you found the bad row.

What Check tests

  1. Two bars are drawn
  2. No attribute holds NaN
  3. The note says 1 row skipped
  4. The bars are 74.5 and 94.0 pixels high

Stuck? One hint at a time

The solution unlocks after your first Check. Try first: that is where the learning happens.

Runs in your browser. Your code is saved here.

Your page

Press Run to see the page.

Console

Nothing logged yet.