Skip to main content
100%

Fork of Rendering Data with React & D3

✓ Published1🌍 Public
BBenjamín Salas Sadler
Last edited Dec 4, 2022
Created on Dec 4, 2022

This visualization displays the top 10 most populous countries in 2020 as an SVG bar chart, using React components to render each axis and mark while D3 utilities handle data loading and scale construction. The code loads UN population data via `d3.csv`, transforms it with `scaleBand` for categorical y-axes and `scaleLinear` for numeric x-axes, and formats tick labels with `d3.format`. React's `useState` and `useEffect` manage async data fetching, with custom `AxisBottom`, `AxisLeft`, and `Marks` components composing the final chart.

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