Fork of Let's make a Bar Graph with D3.js
✓ Published0🌍 Public
This bar chart displays population figures for ten countries, using horizontal bars sorted by the dataset’s original order. The visualization loads data from a CSV file, multiplies each population value by 1,000, and renders it as SVG rectangles. It uses D3 v7’s `scaleLinear` for the x-axis, `scaleBand` for the y-axis, and `axisLeft` and `axisBottom` to generate the labeled axes. The chart applies margins and a steelblue fill to the bars via CSS.
AI-generated descriptionMIT Licensed