Activity 7_Part1
✓ Published0🌍 Public
This visualization displays the population of ten countries in 2020 as a horizontal bar chart, with countries sorted on the y-axis and population shown on the x-axis. The bars are rendered as SVG rectangles using React components, with the population values scaled by a linear axis and formatted in a compact, readable way (e.g., "1.2B"). The chart is built with D3.js v5 for data loading and scaling functions, including `scaleBand` for the categorical y-axis, `scaleLinear` for the continuous x-axis, and `csv` for fetching the dataset from a remote GitHub source. Axis ticks and labels are styled with a brown line color and a Poppins font, and each bar includes a tooltip showing the population value.
AI-generated descriptionMIT Licensed