🌍 Public
Viewing a saved revision (read-only)
9251ad7278c7449c97eb7cf972701880
Making a Bar Chart
A horizontal bar chart displays the goals scored by African football players, with player names on the y-axis and goal counts on the x-axis. The chart uses D3 v5’s `scaleLinear` and `scaleBand` to map data from `data.csv` to SVG rectangles, with `axisLeft` and `axisBottom` generating scales and tick marks. `<rect>` elements are bound to the data via a data join, while CSS styles the bars.
AI-generated descriptionbar chart