๐ Public
stylised bar chart
This stylised bar chart displays the population of ten countries from a UN dataset, using horizontal bars scaled by population value. Built with React and D3 v7 in SVG, it employs `scaleBand` for the categorical y-axis and `scaleLinear` for the population x-axis. The chart features a clean, minimalist design with Raleway typography, custom tick styling, and tooltips showing formatted values via `d3.format`. Data is loaded asynchronously using `d3.csv` and rendered through a React state hook.
AI-generated descriptionA program that loads in some data about CSS named colors using D3 utilities, and uses React state to keep track of the data.
MIT Licensed
Comments
Sign in to join the discussion.