Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
MMahaveer Jain
Last edited Aug 23, 2021
Created on Aug 22, 2021
Forked from D3-Face

A horizontal bar chart ranks eight countries by population, using a CSV dataset loaded with `d3.csv`. The visualization builds static SVG rectangles, mapping population values through `d3.scaleLinear` and country names through `d3.scaleBand`, with axes generated via `d3.axisLeft` and `d3.axisBottom`. Formatting applies `d3.format` to abbreviate tick labels, and CSS styles the teal bars and axis text. The chart also includes a title and axis label, all rendered in an SVG container sized by its HTML attributes.

AI-generated description

A demonstration of basic HTML and CSS.

MIT Licensed

Similar vizzes