🌍 Public
Viewing a saved revision (read-only)
ccab4323b73c4cabac77a3aaf264b022
Fork of Rendering Data with React & D3
This example displays the ten most populous countries in 2020 as a horizontal bar chart, using United Nations population data loaded via D3’s `csv` utility. React manages component state and rendering, while D3’s `scaleBand` and `scaleLinear` compute bar positions and widths, and `max` and `ticks` generate the axis. The SVG output is created through React elements, with gridlines and country labels drawn from D3 scales.
AI-generated descriptionA program that loads in some data about CSS named colors using D3 utilities, and uses React to render the data as a radial burst!