Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
MMinh Nguyen
Last edited Apr 19, 2020
Created on Apr 19, 2020
Forked from Making a Bar Chart

This example shows a horizontal bar chart of country populations using D3 v5 within a React framework. It renders SVG rectangles whose widths are scaled linearly by population values and heights by an ordinal band scale for countries. The code specifically uses `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` from D3, with data loaded from a CSV file. Population values are multiplied by ten during import, and the chart includes margins and unlabeled axes.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes