Skip to main content
100%

React & D3 Bar Chart

✓ Published0🌍 Public
Mmattbwebster
Last edited Sep 2, 2021
Created on Sep 2, 2021

This example shows a bar chart of United Nations population data from 2019, displaying country names along the y-axis and population values along the x-axis. Built with React and D3 v7, the visualization uses SVG rendering with `scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis. The loading state is handled through React's `useState` and `useEffect`, fetching CSV data from a GitHub gist and displaying a temporary "Loading..." message before rendering the chart.

AI-generated description

A program that uses react and D3 to build a barchart.

MIT Licensed

Similar vizzes