Skip to main content
100%

Let's make a face with D3.js!

✓ Published0🌍 Public
Mmarkxwang
Last edited Jun 11, 2020
Created on Jun 11, 2020
Forked from HTML Starter

This example shows a horizontal bar chart of population by country, rendered as SVG rectangles in a React-based D3 v5 setup. The bars are scaled linearly by population and banded by country name. The code uses `d3.csv` to load population data, `d3.scaleLinear` and `d3.scaleBand` for axes, and appends `<rect>` elements via `svg.selectAll`. Data is parsed by converting population strings to numbers. SVG dimensions are read from the markup, and rendering is triggered after asynchronous CSV loading.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes