Skip to main content
100%

Styled Bar Chart

✓ Published1🌍 Public
Nnkarinti
Last edited Jul 3, 2023
Created on Jul 3, 2023

This styled bar chart displays the population of the top ten countries from a United Nations 2019 dataset, loaded via the `csv` function in D3. The horizontal bars are positioned and scaled using D3's `scaleBand` and `scaleLinear`. Orange rectangles represent population values, with axis labels and tick marks generated from the scales. The React application, using `useState` and `useEffect`, manages the asynchronous data fetching and renders the SVG chart, with custom components for axes and marks.

AI-generated description

A program that loads in some data using D3 utilities, and uses React state to keep track of the data.

MIT Licensed

Similar vizzes