Skip to main content
100%

Making a bar chat

✓ Published0🌍 Public
Rrayray196
Last edited Apr 13, 2023
Created on Apr 12, 2023
Forked from HTML Starter

This bar chart displays the scores of four individuals—Simon, Mary, Jo, and Peter—on a fixed scale from 0 to 100, using blue rectangular bars. Built with D3 v7, it employs `d3.scaleBand` to position bars along the x-axis and `d3.scaleLinear` for the y-axis, binding data to SVG `rect` elements via `join`. The chart is sized with explicit width, height, and margin constants, rendering inside an SVG container with a specified `viewBox`.

AI-generated description
MIT Licensed

Similar vizzes