Skip to main content
100%

Fork of Rendering Data with React & D3

✓ Published0🌍 Public
SSampras Dsouza
Last edited Jun 13, 2022
Created on Jun 13, 2022

This example loads UN population data from a CSV file using D3’s `csv` utility, then renders a horizontal bar chart with React components. The `scaleBand` and `scaleLinear` functions position the bars and axis ticks, while `max` computes the domain. The visualization displays the top 10 countries by 2020 population as SVG rectangles, with country labels on the left axis and numeric tick marks along the bottom. All rendering happens through React’s declarative JSX, with D3 used solely for data loading and scale calculations.

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