🌍 Public
Viewing a saved revision (read-only)
47d76c4c38304957af86b5b5d1cc5f65
Activity 7
This example displays a horizontal bar chart comparing the 2020 populations of 20 countries, using data loaded from a CSV file. The visualization is built with React and D3 v5, rendering as an SVG. It uses `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis, with bars colored light green. Mouse-over tooltips, generated via a `<title>` element, reveal the population values in a formatted, abbreviated style (e.g., using "B" for billions).
AI-generated descriptionA demonstration of how to start using D3 version 6.