Skip to main content
100%

Refactored Bar Chart

✓ Published1🌍 Public
AAndrea Picciau
Last edited Oct 31, 2021
Created on Oct 31, 2021

This bar chart displays the population of ten countries in 2020, using horizontal bars with countries labeled on the y-axis and population values on the x-axis. It is built with React and D3 v5, using `scaleBand` and `scaleLinear` to map data to SVG rectangles, with axes rendered as React components. The data is loaded asynchronously from a CSV via `useData` and `csv`, and the chart updates after the data arrives.

AI-generated description

Smiley face implementation with React & D3.

MIT Licensed

Similar vizzes