Enable p5.js

new p5 instance mode.

Enable p5.js under Libraries, wait until it is checked, then paste the whole editor. Use instance mode: new p5((s) => { ... }).

Goal

Run every block and confirm the chart is visible.

document.body.innerHTML = "";
new p5((s) => {
  const units = [21, 15, 15, 18, 12];
  s.setup = () => { s.createCanvas(440, 220); s.noLoop(); };
  s.draw = () => {
    s.background(250);
    units.forEach((u, i) => { s.fill('#1d4f7a'); s.rect(30 + i * 80, 180 - u * 6, 50, u * 6); });
  };
});
console.log('bars');
console.log("p5", typeof p5);