activity 6_Task 1
✓ Published0🌍 Public
This example shows a horizontal bar chart comparing the populations of twenty countries in 2010, with country names on the y-axis and population values on the x-axis. The visualization uses React with D3 v5, employing `scaleBand` and `scaleLinear` for positioning, with SVG rectangles rendered as marks. Data is loaded from a CSV file using `d3.csv` and formatted with D3's `format` function to display values in billions. Axis components handle tick generation and titles, while hover tooltips reveal precise population figures.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed