Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
Llopezruben
Last edited Apr 11, 2020
Created on Apr 6, 2020
Forked from HTML Starter

This example shows a horizontal bar chart of the top 10 most populous countries, with population values read from a local CSV file and scaled using `d3.scaleLinear` and `d3.scaleBand`. The bars are rendered as SVG rectangles, with axes generated by `d3.axisLeft` and `d3.axisBottom`. Built with React and D3 v5, the chart uses `d3.csv` to load data and applies a custom margin layout, with a steel-blue fill for all rectangles.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes