Activity 6_Question 1
✓ Published1🌍 Public
This bar chart displays the population of ten countries in the year 2000, with each bar’s length proportional to its population value. The visualization uses React and D3 v5, importing scaleBand and scaleLinear to map the categorical and quantitative axes. Data is loaded from a CSV via d3.csv, rendered as SVG rectangles, with x-axis ticks formatted using d3.format to abbreviate large numbers. The code also includes tooltips on each bar, showing the formatted population on hover.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed