🌍 Public
Viewing a saved revision (read-only)
687ce4be6022426294f686e8cee0e046
Making a bar Chart
This example displays a horizontal bar chart of country populations, with bars scaled proportionally to population values and country names on the vertical axis. It uses D3 v5 within a React-like structure, loading data from a local CSV file and rendering to SVG. The code employs D3’s `scaleLinear` for the numeric axis, `scaleBand` for categorical spacing, and `axisBottom` and `axisLeft` to generate tick marks and labels.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.