Command Palette

Search for a command to run...

Hectal
Phase 16: Dashboards in Production
Data Visualization · Exercise 2 of 5 PreviousNext
Beginner

Never a blank box

draw(rows) paints a bar per day. With an empty list it paints nothing and says nothing: a blank box.

When rows is empty, draw no bars and put No days match these filters. in #message. With data it must draw one bar per row and clear the message.

What Check tests

  1. With data the chart has 3 bars
  2. With data the message is empty
  3. An empty list draws no bars and says why
  4. No attribute holds NaN

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.