Skip to main content
100%

Fork of Rendering Data with React & D3

✓ Published0🌍 Public
Kkatebacon32
Last edited Apr 5, 2021
Created on Apr 5, 2021

This example shows a horizontal bar chart of the ten most populous countries in 2020, using population data loaded from a CSV file hosted on GitHub. The code combines React for component rendering with D3 utilities `csv`, `scaleBand`, and `scaleLinear` to parse the data and set up the scales for the chart. Each country is drawn as an SVG `<rect>` element, with the bar width proportional to its population. The visualization demonstrates how D3’s data-loading and scaling functions can be integrated directly into a React component’s state and effect hooks.

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