task 8
✓ Published0🌍 Public
This visualization displays the population of ten countries in 2010 as a horizontal bar chart, with country names on the y-axis and population values on the x-axis. Population data is loaded from a remote CSV file using d3.csv, with the population field parsed and scaled by a factor of 1000. The chart is rendered as an SVG using React components, with d3.scaleBand for the categorical y-axis and d3.scaleLinear for the numeric x-axis. Axis components use d3 tick formatting with a custom function that converts values like "1.5G" to "1.5B". The bars include a native SVG title element for tooltips showing the formatted population value.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed