🌍 Public
Viewing a saved revision (read-only)
5d39d79f03dd470991ac82f4aee3a92e
Bar chart
A horizontal bar chart displays Olympic medal counts for ten countries, sourced from data.csv. Using the React framework and D3 v5, the visualization maps medal counts to bar widths via a linear scale and country names to vertical positions via a band scale. The SVG rendering includes axes created with axisLeft and axisBottom, with bars styled as rect elements. Data is loaded and parsed asynchronously with csv, converting medalCount values to numbers for quantitative scaling.
AI-generated descriptionReact Starter code.