Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Viewing a saved revision (read-only)

9251ad7278c7449c97eb7cf972701880

Making a Bar Chart

0 stars1🌍 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