🌍 Public
Viewing a saved revision (read-only)
84c1a3cf88f44692be90092ce7e9b0d5
activity 6_Task 1
This horizontal bar chart displays population figures for 30 countries in 2020, using a green rect for each country with a native SVG tooltip showing the formatted value. The visualization is built with React and D3 v5, using `scaleBand` for the categorical y-axis, `scaleLinear` for the quantitative x-axis, and custom `AxisBottom` and `AxisLeft` components to render ticks. Population data is loaded from a remote CSV via `d3.csv`, with values multiplied by 1000 and formatted using `d3.format`. The chart includes a labeled population axis and blue tick lines.
AI-generated descriptionA demonstration of how to start using D3 version 6.