Skip to main content
100%

Fork of Axes with React & D3

✓ Published0🌍 Public
NNikhilchiguru-8
Last edited Mar 8, 2023
Created on Mar 8, 2023

This example displays the top 10 most populous metropolitan areas by their 2020 cost of living, shown as a horizontal bar chart. It uses React for component state and rendering, while D3 v5's `scaleBand` and `scaleLinear` handle the axis scales and `max` determines the domain. The SVG chart includes a labeled x-axis with ticks and a y-axis of metro names. Data is loaded from a CSV via `d3.csv`, and the code combines React hooks like `useState` and `useEffect` with D3's functional APIs.

AI-generated description

A program that shows the top 10 most populous countries as a pathetic bar chart with no axes.

Data: United Nations World Population Prospects 2019.

MIT Licensed

Similar vizzes