Skip to main content
100%

D3

✓ Published2🌍 Public
JJeffrey Miiller
Last edited Jan 23, 2020
Created on Jan 18, 2020
Forked from D3

This example shows a horizontal bar chart of population data for ten countries, with population values scaled by a factor of 1,000. The visualization uses D3 v5 to load the CSV, create linear and band scales, and render SVG rectangles with axes. The code demonstrates `d3.csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom`, and the chart is built within a React context, with the SVG element targeted by `d3.select`. The bars are styled with steelblue fill, and axes are labeled with a custom font size.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes