🌍 Public
activity6_task1
This interactive visualization presents a horizontal bar chart ranking the top 10 countries by population in the year 2000. Built with React and D3 v5, the chart uses SVG rectangles with scales created via `scaleBand` and `scaleLinear`, and displays axis ticks generated by custom components. Population values are formatted with D3’s `format` function, converting large numbers to abbreviated labels like “B” for billions. The data is loaded asynchronously from a CSV file using D3’s `csv` parser, and tooltips show the formatted population value on hover.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed
Comments
Sign in to join the discussion.