🌍 Public
Viewing a saved revision (read-only)
8da829ec4a4f4ca994b6b567cf37b53c
Making a Bar chart
This bar chart displays the population of ten countries, with horizontal bars sorted by country name along the y-axis and population values on the x-axis. Built with D3 v5, it loads data from a local CSV file and renders as an SVG. The code uses `scaleLinear`, `scaleBand`, `axisLeft`, `axisBottom`, and `selectAll` to create the visualization, styling the bars with a blue fill.
AI-generated description