Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

refactored bar chart

Public visualization

Viewing a saved revision (read-only)

d42ae0f5cbf4434a83ce686d67d7c3c7

refactored bar chart

0 stars0🌍 Public
BBrian Machado
Last edited Jul 2, 2022
Created on Jul 2, 2022

This example shows a horizontal bar chart of population data for ten countries from a UN 2019 dataset. The visualization uses React to render SVG elements, with D3 v7 scales (`scaleBand` and `scaleLinear`) positioning the bars and axes. Custom React components (`AxisBottom`, `AxisLeft`, `Marks`) construct the tick lines, labels, and rectangles based on the data, while `useData` fetches and parses the CSV via `d3.csv`.

AI-generated description

Smiley face implementation with React.