Fork of question 1
✓ Published0🌍 Public
This horizontal bar chart displays the population of ten countries in the year 2000, sorted from the largest to the smallest population. The visualization uses D3 v5 scales (`scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis) within a React component, with SVG rendering for the bars. Data is loaded asynchronously from a CSV file via D3's `csv` utility, and hovering over a bar reveals its population value in billions using a title tooltip. The chart’s axes are customized with tick lines in blue and formatted labels.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed