Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Untitled

Public visualization

Untitled

0 stars0🌍 Public
Ssimon0863
Last edited Nov 11, 2020
Created on Nov 11, 2020

This example shows a horizontal bar chart of national populations, using the ten most populous countries from a CSV file. The chart renders as an SVG and uses D3 v6 scales (`scaleLinear` for bar lengths and `scaleBand` for categorical y-axis placement), with `d3.axisLeft` and `d3.axisBottom` providing labeled axes. Population values from the data are multiplied by 1,000 before plotting, and bars are colored via a CSS rule targeting `rect` elements. The React framework is present in the starter code but does not drive this visualization directly.

AI-generated description

React Starter code.

Comments

Sign in to join the discussion.

MIT Licensed