🌍 Public
Viewing a saved revision (read-only)
7ab214a48a4a4d31be51f8139435e6a2
Activity6 tutorial 1 task 1
This example presents a horizontal bar chart comparing the populations of ten countries in the year 2000. The visualization uses D3 v7 with an SVG rendering approach, employing `d3.scaleLinear` for the x-axis, `d3.scaleBand` for the y-axis, and `d3.axisBottom` and `d3.axisLeft` for the axes. The data is loaded asynchronously from a CSV file using `d3.csv`. Rectangular marks are colored light green, with axis labels formatted to abbreviate large population values.
AI-generated description