Skip to main content
100%

Untitled

✓ Published1🌍 Public
RReekMajumder
Last edited Nov 10, 2020
Created on Nov 10, 2020
Forked from Untitled

This example shows a horizontal bar chart of population by country, with ten nations ranked from China’s largest population down to Mexico. The chart uses D3 v6 modules including `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to map population values to bar widths and country names to vertical positions. The SVG renders with a steel-blue fill for each bar, and the data is loaded from a local CSV file where population values are multiplied by 1000. Margins are applied on all sides to position the axes and bars within the 960 by 500 pixel viewport.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes