Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Refactored Bar Chart

Public visualization

Viewing a saved revision (read-only)

79c59bcc3c1042c3b8cd989df52227ae

Refactored Bar Chart

0 stars1🌍 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.