🌍 Public
Viewing a saved revision (read-only)
b71b9720572a4f83842f254345d415d3
Making a Bar Chart
A horizontal bar chart displays the goal counts of Premier League players, sorted in descending order from Mohamed Salah’s 32 to Eden Hazard’s 12. Built with D3 v5, the example loads CSV data via `d3.csv`, selects the SVG element with `d3.select`, and renders steelblue rectangles with `rect` elements. The chart uses a fixed 960×500 SVG canvas, with text labels sized via CSS, demonstrating a straightforward mapping from tabular data to visual bars.
AI-generated description