Command Palette

Search for a command to run...

Hectal
Phase 3: Charts by Hand, No Library
Data Visualization · Exercise 4 of 5 PreviousNext
Intermediate

Turn points into a line

The array points holds five [x, y] pairs. Build the path text with M for the first point and L for the others, and put it in the d of #line. Keep fill="none".

What Check tests

  1. The path has five points
  2. It starts at (10, 50) and ends at (210, 40)
  3. The path is not filled
  4. 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.