🌍 Public
Viewing a saved revision (read-only)
8c2b3dc47bdb4a2faac065362694b0b8
Activity6_Q1.1
This example displays a horizontal bar chart of population data for ten countries for the year 2000, using a D3 v5 scaleBand and scaleLinear within a React component. The SVG rendering maps each country’s population value to a scaled bar width, with axis tick marks and tooltips formatted via `d3.format`. Data is loaded asynchronously from a CSV file using `d3.csv`, and the chart includes blue grid lines and green bars, with a custom Poppins font applied.
AI-generated descriptionA demonstration of how to start using D3 version 6.