🌍 Public
Viewing a saved revision (read-only)
869a8f357f73426b929cc34644d2b2c9
Activity 8 Q1.1
This example shows a horizontal bar chart comparing the population of 30 countries in the year 2000. It uses React to render SVG elements, with D3 v5’s `scaleBand` and `scaleLinear` defining the chart’s scales. The code loads CSV data from a GitHub gist, formats the population values, and displays them with axes rendered by custom `AxisBottom` and `AxisLeft` components, each with tick marks and labels.
AI-generated descriptionA demonstration of how to start using D3 version 6.