Skip to main content
100%

Activity 6 Question 2

✓ Published0🌍 Public
Jjaswanthreddy2000@gmail.com
Last edited Apr 5, 2024
Created on Apr 5, 2024

A horizontal bar chart ranks the top 20 countries by 2010 population, with the US Census data loaded from a CSV. Built with React and D3 v5, it uses `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis. The `format('.2s')` function abbreviates population values (e.g., "1.2B"), while SVG rectangles render the bars with a native tooltip on hover. The chart includes styled tick lines and labels, with axes and marks composed via reusable React components.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes