🌍 Public
Viewing a saved revision (read-only)
1297faf92b2e444493c4351b1bbecc93
Activity 6 task 1.1
This example displays a horizontal bar chart of the top 20 countries by population in 2010, read from a remote CSV file via d3.csv. The React app maps the data to SVG rectangles using d3.scaleBand for the y-axis and d3.scaleLinear for the x-axis, with axes built from d3.scaleBand.ticks and tick formatting via d3.format('.2s'). Hovering reveals the population value in a tooltip through the SVG `<title>` element.
AI-generated descriptionA demonstration of how to start using D3 version 6.