Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

D3

Public visualization

Viewing a saved revision (read-only)

a6df7847d8ad4bf7a78b4a48b669a48c

D3

0 stars2🌍 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.