Skip to main content
100%

Axes With React and D3 UNPOP

✓ Published1🌍 Public
Rrayking99
Last edited Jun 10, 2021
Created on Jun 10, 2021
Forked from MarginConvUNPop

This visualization displays the population of ten countries in 2020 as horizontal bars, with a linear x-scale for population and a band scale for country names. Built with React and D3 v6, the code defines custom axis components (`AxisBottom`, `AxisLeft`) that render SVG ticks and labels, while `Marks` generates rectangles with tooltips. It fetches UN population data from a CSV file, formats axis ticks using D3’s `format` function (replacing 'G' with 'B' for billions), and applies custom CSS styling for fonts and color.

AI-generated description
MIT Licensed

Similar vizzes