🌍 Public
TASK1
This example shows a horizontal bar chart comparing the populations of ten countries in the year 2000, ranked by country name on the y-axis and population in billions on the x-axis. It renders as an SVG using React components and D3 v5 scales, with d3.scaleBand for bars, d3.scaleLinear for the axis, and d3.format for tick labels (e.g., “1.2B”). Data is loaded via d3.csv from a GitHub-hosted dataset, with hover tooltips displaying formatted population values.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed
Comments
Sign in to join the discussion.