🌍 Public
Fork of Making a Bar Chart
D3.csv loads country population data (in thousands) to create a horizontal bar chart for the top ten most populous countries. D3 scaleBand positions country categories along the y-axis, while d3.scaleLinear maps population counts to bar widths on the x-axis. The chart renders as an SVG with axisBottom and axisLeft, using a custom tick formatter to abbreviate large numbers. No interaction is included; a static red border frames the visualization.
AI-generated descriptionMIT Licensed
Comments
Sign in to join the discussion.