Assignment2
✓ Published0🌍 Public
This interactive bar chart displays the population of the top 20 countries in 2020, using horizontal bars sorted by country name. Built with React and D3 v5, it renders SVG elements through custom components like AxisBottom, AxisLeft, and Marks, which map data to bar widths via d3.scaleLinear and d3.scaleBand. Population values are formatted with d3.format, and CSV data is loaded asynchronously using d3.csv, with a tooltip showing the formatted population figure.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed