Skip to main content
100%

refactored bar chart

✓ Published1🌍 Public
HHollyClarke19
Last edited Feb 7, 2021
Created on Feb 7, 2021

This example shows a horizontal bar chart of population data for the top 10 countries in 2020, sourced from a UN population CSV file. React components render SVG rectangles for the bars, with D3’s scaleBand and scaleLinear mapping country names and population values. AxisBottom and AxisLeft components generate tick marks and labels using D3’s scale ticks, while the useData hook asynchronously loads and parses the CSV with d3.csv.

AI-generated description

A program that loads in some data about css named colours using d3 utilities, and uses React to render the data and D3 to format as a radial burst

MIT Licensed

Similar vizzes