Skip to main content
100%

Make a bar chart population

✓ Published0🌍 Public
EEngine194
Last edited Mar 15, 2023
Created on Mar 14, 2023
Forked from D3 Starter

This example displays a horizontal bar chart of the world’s most populous countries, ranking them from China to Thailand based on their population counts. The chart renders as an SVG using D3 v7, with a linear scale mapping population to bar width and a band scale for country names. Data is loaded from a semicolon-delimited CSV file and parsed with `d3.dsvFormat`. The chart uses `d3.scaleLinear`, `d3.scaleBand`, `d3.axisLeft`, and `d3.axisBottom` to construct the axes and bars, which are styled with a steel blue fill.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes