Making a Bar Chart with React & D3 - no Axes
✓ Published1🌍 Public
This example displays a bar chart of population data from the UN World Population Prospects 2019, with bars rendered without axes. It uses React’s `useState` and `useEffect` to load a CSV via `d3.tsv`, then maps each country to a `rect` element whose height is set by `d3.scaleBand` and width by `d3.scaleLinear`. The SVG output is produced through ReactDOM, with D3 v5 handling scaled dimensions.
AI-generated descriptionA program that makes a bar chart using data data from the [UN World Population Prospects 2019] (https://population.un.org/wpp/Download/Standard/Population/) but there are no axes.
MIT Licensed