Making a Bar Chart
✓ Published2🌍 Public
A horizontal bar chart displays population estimates for ten countries, ranking them from China at the top down to Mexico. The visualization uses D3 v5 APIs such as `d3.csv`, `d3.scaleLinear`, `d3.scaleBand`, `d3.axisLeft`, and `d3.axisBottom` to load and render the data as SVG rectangles. Population values in the CSV are converted from strings to numbers and multiplied by 1000 before being scaled to the chart’s width. The chart features steel-blue bars and includes styled text elements for axis labels.
AI-generated descriptionMIT Licensed