Skip to main content
100%

D3 Bar Chart

✓ Published1🌍 Public
Ssathishkottravel
Last edited Apr 25, 2020
Created on Apr 25, 2020
Forked from HTML SVG SHAPES

This visualization displays world population by country using a horizontal bar chart rendered with SVG. The chart uses a linear scale for population values and a band scale for country names, with axes generated by `d3.axisLeft` and `d3.axisTop`. Data is loaded from a CSV file and parsed with `d3.csv`, then bars animate their widths via `transition`. The code applies a steelblue fill to all rectangles and uses `d3.scaleLinear` and `d3.scaleBand` for scaling.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes