🌍 Public
Viewing a saved revision (read-only)
6481717f9f8d4c0087617dc864af9466
Stylised Bar Chart
This stylised bar chart displays the top 10 countries by projected 2020 population, sourced from UN population data. Built with React and rendered as SVG using D3 v6 utilities, the chart uses a horizontal bar layout with a linear scale for population and a band scale for countries. The code imports `scaleBand`, `scaleLinear`, and `format` from D3, while custom React components handle axis and bar rendering. Population values are formatted with SI prefixes, converting gigabytes to billions for tick labels and tooltips.
AI-generated descriptionA program that loads in some data about CSS named colors using D3 utilities, and uses React to render data.