Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Refactored Bar Chart

Public visualization

Refactored Bar Chart

0 stars1🌍 Public
GGonzalo Alarcón Usui
Last edited Dec 2, 2021
Created on Dec 2, 2021

A bar chart displays the 2020 populations of ten countries using D3.js v7 scales, with country names on the y-axis and population magnitudes on the x-axis. React components—AxisBottom, AxisLeft, and Marks—render the SVG axes and horizontal rectangles. The data loads from a CSV via `useData` and `d3.csv`, while `scaleBand` and `scaleLinear` map values to pixel coordinates.

AI-generated description

A program that follows your mouse with a circle.

Comments

Sign in to join the discussion.

MIT Licensed