🌍 Public
Viewing a saved revision (read-only)
d21ab35edcec4e09a65d9bc85ad6a9f0
Activity6_T1
This chart displays 2020 population estimates for 30 countries, with vertical bars representing each country’s population in billions. The visualization uses React to render SVG elements, with D3 v5’s `scaleBand` and `scaleLinear` positioning the bars, and `format` converting tick labels from gigas to billions. Data loads asynchronously from a CSV file via `d3.csv`, supporting hover tooltips through SVG `<title>` elements. The x-axis is labeled “POPULATION-2020” and styling is applied through CSS classes.
AI-generated descriptionA demonstration of how to start using D3 version 6.