Skip to main content
100%

Rendering data with React & D3

✓ Published0🌍 Public
MMadalina Harii
Last edited Mar 2, 2021
Created on Mar 2, 2021

A horizontal bar chart displays the ten most populous countries in 2020, using United Nations population data loaded via `d3.csv`. React manages the component state, while D3 scales (`scaleLinear` and `scaleBand`) map population values to rectangle widths and country names to vertical positions. The SVG bars are rendered as React elements inside a `<svg>` container, with D3's `max` function determining the domain for the linear scale.

AI-generated description

A program that loads in data about CSS named colors using D3 utilities, and uses React to render the data

MIT Licensed

Similar vizzes