Making a Bar Chart
✓ Published1🌍 Public
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 descriptionA demonstration of basic HTML and CSS.
MIT Licensed