Command Palette

Search for a command to run...

Hectal
Phase 6: Scales and Axes
Data Visualization · Exercise 4 of 4 Previous
Intermediate

Keep zeros off a log scale

The list has hours with 0 rides. A log scale returns NaN for 0, so those dots break.

Draw only the hours that have a finite position, and write 2 hours skipped into #note.

What Check tests

  1. Four dots are drawn
  2. No attribute holds NaN
  3. The note says 2 hours skipped

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.