🌍 Public
Viewing a saved revision (read-only)
225a0344495d4de8a8dcf55dcee7d96e
Activity 6_Task 1
This example shows a horizontal bar chart ranking the populations of 20 countries in 2020, with a green bar for each nation and axis labels formatted in billions. It uses React components to render SVG marks via `scaleBand` and `scaleLinear`, pulling data from a CSV file loaded with `d3.csv`. The chart includes a custom axis, a bottom label, and a tooltip showing the population value.
AI-generated descriptionA demonstration of how to start using D3 version 6.