🌍 Public
Viewing a saved revision (read-only)
56b87a1753764b2ea57de87bb3562f1b
DV TASK-8(Q1)
This example shows a horizontal bar chart comparing the populations of ten countries in the year 2000. The visualization uses React to render SVG elements, with D3 v5 scales (`scaleBand` and `scaleLinear`) mapping country names and population values to positions and bar lengths. The data is loaded as CSV from a GitHub repository, with population values converted from thousands. Tooltips display formatted population values, and axes are labeled with a tick format that abbreviates large numbers using the `format` API.
AI-generated descriptionA demonstration of how to start using D3 version 6.