Skip to main content
100%

D3 bar chart

✓ Published0🌍 Public
PPiotrekW2
Last edited Feb 26, 2019
Created on Feb 26, 2019

This bar chart displays the populations of the world’s ten most populous countries, sorted by rank, with China leading and Mexico last. The code loads a CSV file using `d3.csv`, scales the data with `d3.scaleLinear` for the x-axis and `d3.scaleBand` for the y-axis, and renders SVG rectangles. Axes are generated via `d3.axisBottom` and `d3.axisLeft`, with the chart drawn inside an SVG container using D3 v5.

AI-generated description
MIT Licensed

Similar vizzes