Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

D3 bar chart

Public visualization

Viewing a saved revision (read-only)

a751458bb49f4e18920d11de02766092

D3 bar chart

0 stars0🌍 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