Skip to main content
100%

Axes with react and d3

✓ Published1🌍 Public
MmohitPassan
Last edited Apr 26, 2021
Created on Apr 26, 2021
Forked from Margin convention

This example shows a horizontal bar chart of country populations in 2020, rendered as SVG with React. It loads CSV data via `d3.csv` and manages the asynchronous state with React hooks (`useState` and `useEffect`). The chart uses `d3.scaleBand` for the categorical y-axis and `d3.scaleLinear` for the quantitative x-axis, with manually drawn tick marks and labels. The data comes from a GitHub Gist, and the visualization updates once the data is fetched and stored in React state.

AI-generated description

A program that loads in some data about CSS colors using d3 and keeps track using react

MIT Licensed

Similar vizzes