Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Scatter Plot

Public visualization

Scatter Plot

0 stars0🌍 Public
KKenneth Silvere
Last edited Jun 20, 2021
Created on Jun 20, 2021
Forked from Stylized bar chart

This example displays a horizontal bar chart of population figures for ten countries from the 2019 UN Population dataset, loaded as CSV via D3’s `csv` utility. The visualization uses `scaleBand` for the categorical country axis and `scaleLinear` for the population axis, rendering SVG bars through React components. A native SVG `<title>` tooltip shows formatted population values upon hover, while the axis labels and ticks are styled with D3 `format` to abbreviate large numbers.

AI-generated description

A program that loads in some data about CSS named colors using D3 utilities, and uses React state to keep track of the data.

Comments

Sign in to join the discussion.

MIT Licensed