Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Rendering Data with React & D3

Public visualization

Fork of Rendering Data with React & D3

0 stars0🌍 Public
SSemyon
Last edited Jul 9, 2021
Created on Jul 7, 2021

This example displays a horizontal bar chart of the top 10 countries by population for 2020, using React to render SVG elements and D3 for data loading and scales. The chart shows population values as bars with labeled axes, including a formatted bottom axis using `format(".2s")`. Data is loaded via `d3.csv` from a UN population dataset, with country names on the y-axis using `scaleBand` and population on the x-axis using `scaleLinear`. React components such as `AxisBottom`, `AxisLeft`, and `Marks` manage the visualization structure.

AI-generated description

A program that loads in some data about CSS named colors using D3 utilities, and uses React to render the data as a radial burst!

Comments

Sign in to join the discussion.

MIT Licensed