Skip to main content
100%

D3 Visualization tutorial

✓ Published2🌍 Public
GGunMoLee
Last edited Feb 9, 2020
Created on Jan 30, 2020
Forked from HTML Starter

This example shows a bar chart of population counts for ten countries, with the United States and China dominating the visual scale. Built with D3 v5 and React, the visualization loads tabular CSV data and renders it as SVG rectangles. The code uses D3’s `csv` parser, `scaleLinear` for the x-axis, `scaleBand` for the categorical y-axis, and `axisLeft` and `axisBottom` to draw tick marks. Population values are converted from thousands to raw counts before mapping to pixel widths.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes