Activity 6_Question 2
✓ Published0🌍 Public
This example shows a horizontal bar chart of population figures for 20 countries in 2010, with each bar’s length encoded by population value and countries labeled on the y-axis. The visualization is built with React and D3 v5, using `scaleBand` and `scaleLinear` for positioning, and custom `AxisBottom` and `AxisLeft` components to render tick marks and labels. Data is loaded via `d3.csv` from a GitHub-hosted CSV file, and bars are drawn as SVG `<rect>` elements with a tooltip using the native `<title>` element.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed