Skip to main content
100%

Axis with React and D3

✓ Published1🌍 Public
DDeborah Ong
Last edited Apr 3, 2021
Created on Apr 3, 2021

This example displays a horizontal bar chart ranking the ten most populous countries in 2020, sourced from a UN population CSV fetched via D3’s `csv` utility. D3’s `scaleBand` and `scaleLinear` compute the bar positions and lengths, while its `max` and `ticks` generate the axis tick marks. React manages the data loading state and renders the SVG markup, including the axes and bars, using the imported ReactDOM to mount the component.

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