Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Refactored Bar Chart

Public visualization

Viewing a saved revision (read-only)

ddf5c44b11304f498f291bf5b008215c

Refactored Bar Chart

0 stars1🌍 Public
DDaniel Russell-Brain
Last edited Oct 29, 2020
Created on Oct 29, 2020

This bar chart displays the populations of ten countries from a UN 2019 dataset, with countries on the y-axis and population on the x-axis. It uses React components to render SVG elements, with D3 scaleBand and scaleLinear handling the axes and bar positioning. The code is refactored into separate modules for axes, marks, and data loading, demonstrating a clear separation of concerns in a React+D3 visualization.

AI-generated description

Creating a simple program that follows your mouse around the screen.