Command Palette

Search for a command to run...

Hectal
Phase 18: Interviews and Capstone
Data Visualization · Exercise 1 of 5Next
Advanced

Timed: three sorted bars (10 minutes)

Interview-style task, about 10 minutes. Draw one bar per station into #chart for Quay (58,584 rides), Lantern (58,090) and Library (55,536), sorted with the largest first.

The longest bar must be 340 pixels wide, and every bar's width must be proportional to its rides (a scale that starts at 0). Say your choices aloud as you work.

What Check tests

  1. There are three bars
  2. The first bar is the longest, 340 pixels wide
  3. Widths go down from top to bottom (sorted)
  4. The bars are proportional to the rides
  5. No NaN anywhere

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.