Axes With React and D3 UNPOP
✓ Published1🌍 Public
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 descriptionA program that looks at the CSS colours from (https://gist.githubusercontent.com/rayking99/378256fd70d26e5bbbbf834037092eab/raw/13a0c07ceb1a099c4aba16f2d53220e25ff02144/csscoloursjp.csv)
MIT Licensed