Tutorial 1 Question 1
✓ Published0🌍 Public
This horizontal bar chart displays population figures for ten countries in the year 2000, sorted alphabetically by country name. The visualization uses React components with D3 scales—specifically `scaleLinear` for the x-axis and `scaleBand` for the y-axis—to render SVG rectangles. Data is loaded from a CSV file using d3.csv, with population values converted from thousands. The chart includes formatted axis ticks using d3.format, axis labels, and tooltips that display population values on hover.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed