Skip to main content
100%

Stylised Bar Chart

✓ Published2🌍 Public
SSabin Bhandari
Last edited May 29, 2021
Created on May 29, 2021

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 description

A program that loads in some data about CSS named colors using D3 utilities, and uses React to render data.

MIT Licensed

Similar vizzes