Activity6_Task1_Q1.1
✓ Published1🌍 Public
This example shows the ten most populous countries in the year 2000 as a horizontal bar chart ordered by country name, with each bar’s length representing population in billions. The visualization uses React components to render SVG rectangles and axes, with D3 v5’s `scaleBand` and `scaleLinear` computing positions and scales. Data comes from a remote CSV loaded via `d3.csv`. The y-axis labels country names, while the x-axis formats tick values using D3’s `format` with a custom abbreviation replacing ‘G’ with ‘B’. Axis components (`AxisBottom`, `AxisLeft`) and `Marks` display the chart, including tooltips via SVG `<title>` elements.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed