Task 8 Q1.2
✓ Published0🌍 Public
This interactive chart displays the populations of twenty countries in 2010 as a horizontal bar chart. Using React and D3 v5, the visualization renders SVG rectangles whose lengths are scaled by population via a d3.scaleLinear, with countries listed along a d3.scaleBand axis. The code loads data from a CSV file, formats tick labels with d3.format, and offers tooltips through SVG <title> elements, which show the formatted population value.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed