Skip to main content
100%

Fork of making a bar chart with React & D3

✓ Published0🌍 Public
Jjaowei
Last edited Apr 19, 2021
Created on Apr 7, 2021

This example shows a horizontal bar chart of the ten most populous countries in 2020, using United Nations population data loaded via `d3.csv`. React renders SVG bars, axes, and labels, while D3 scales (`scaleBand`, `scaleLinear`) compute positions and the `format` API converts tick values to abbreviated strings like "1.4B". The code separates concerns into reusable components for axes and marks, with a custom `useData` hook managing asynchronous data fetching.

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!

MIT Licensed

Similar vizzes