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
- Four dots are drawn
- No attribute holds NaN
- 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.