Making a bar chart with D3
✓ Published0🌍 Public
This example shows a horizontal bar chart of country populations using D3.js, with the data loaded from a CSV file. The chart displays population values on the x-axis and country names on the y-axis using `scaleLinear` and `scaleBand`. The code demonstrates data loading with `csv`, rendering SVG rectangles, and adding an axis through `axisLeft`. The visualization is built with D3 v5 in a React framework, rendering to SVG.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.
MIT Licensed