Making a Bar Chart
✓ Published3🌍 Public
This bar chart displays the populations of ten countries, with horizontal bars sorted by descending population. The visualization uses D3 v5’s `scaleLinear` for the x-axis and `scaleBand` for the y-axis, rendering as SVG. Population data from `data.csv` is loaded via D3’s `csv` parser, with values multiplied by 1,000. Axes are added using `axisLeft` and `axisBottom`, and bars are appended as `rect` elements with a steelblue fill.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.
MIT Licensed