Skip to main content
100%

Recfactored Bar Chart

✓ Published0🌍 Public
DDavid Beales
Last edited Mar 27, 2023
Created on Oct 26, 2022

This example presents a basic horizontal bar chart of the top ten countries by 2020 population, using data from a UN population CSV. The chart shows bars scaled linearly against their population values, with axis ticks and country labels. Built with React and SVG, it leverages D3 utilities like `scaleBand`, `scaleLinear`, `max`, and `ticks` to compute scales and tick marks. The code demonstrates a clean separation between data loading via `csv` and declarative UI rendering through React components.

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