Skip to main content
100%

Refactored Bar Chart

✓ Published1🌍 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.

MIT Licensed

Similar vizzes