6. Stylized Horizontal Bar Chart
✓ Published2🌍 Public
This example displays the top 10 most populous countries in 2020 as a stylized horizontal bar chart, rendered as SVG through React components. The chart uses `d3.scaleLinear` for the x-axis and `d3.scaleBand` for the y-axis, with data loaded via `d3.csv` from a UN population dataset. Bars are colored teal with a Poppins font, and axis ticks are customized using `d3.format` to abbreviate large numbers (e.g., converting billions to “B”). Tooltips appear on hover, showing the formatted population value.
AI-generated descriptionA program that loads in some data about CSS named colors using D3 utilities, and uses React to render the data as a radial burst!
MIT Licensed