🌍 Public
Viewing a saved revision (read-only)
cf884755ee154b7ba37c26a0eabd9ca9
activity 6_Task 1
This example displays a horizontal bar chart of population figures for 30 countries in 2020, with country names on the y-axis and population totals on the x-axis. The visualization uses React components to render SVG elements, with d3.scaleBand and d3.scaleLinear for positioning and scaling, and d3.csv to load the dataset from a raw GitHub URL. The bars are colored purple, axis ticks are styled in red and gray, and hover tooltips show formatted population values using d3.format.
AI-generated description