🌍 Public
Viewing a saved revision (read-only)
8d5011276bca4145b0271f28474184f8
Activity 6_Question1.1
This example shows a horizontal bar chart comparing the populations of ten countries in the year 2000, rendered as SVG. The chart uses D3 v5 scales and formatting functions, with React components handling the axes and marks. Data is loaded from a remote CSV file via `d3.csv`, and the bars are drawn using `d3.scaleBand` for the y-axis and `d3.scaleLinear` for the x-axis, with tick labels formatted using `d3.format` to abbreviate large numbers.
AI-generated descriptionA demonstration of how to start using D3 version 6.