🌍 Public
Viewing a saved revision (read-only)
f1a9fedf372548f2b54819c38a933362
Activity8_Task-1
This example shows a horizontal bar chart of 2020 population data for 30 countries, with country names on the y-axis and population values on the x-axis, formatted in billions. The chart uses D3’s `scaleBand` for the categorical y-axis and `scaleLinear` for the continuous x-axis, rendered as SVG rectangles via React. Data is loaded from a CSV file using D3’s `csv` parser, and axes are drawn with custom `AxisBottom` and `AxisLeft` components that style tick lines and labels.
AI-generated descriptionA demonstration of how to start using D3 version 6.