Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
HHadi Boukdir
Last edited Jul 16, 2019
Created on Jul 16, 2019

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 description

bar chart

MIT Licensed

Similar vizzes