🌍 Public
activity 6_Task 1 Q1.2
This horizontal bar chart displays the 2010 population of 20 countries, sorted from largest to smallest. Built with React and D3 v5, it renders SVG rectangles using the `scaleBand` and `scaleLinear` scales. The chart loads CSV data from a GitHub repository, applies a custom tick formatter to abbreviate values in billions, and includes accessor functions for country and population. Both axes are custom components, with axis labels styled in blue and green marks that each contain a native SVG tooltip.
AI-generated descriptionMIT Licensed
Comments
Sign in to join the discussion.