Making a bar chart
✓ Published2🌍 Public
This example shows a horizontal bar chart of population counts for ten countries, with bars ordered by the given CSV data. The visualization uses D3 v5’s `scaleLinear` and `scaleBand` to map population values and country names to pixel positions. Axis components are generated with `axisLeft` and `axisBottom`, while bars are rendered as SVG `rect` elements. The chart is built in a React-free, imperative style, reading from `data.csv` and styling via `styles.css`.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.
MIT Licensed