Fork of Fork of Activity 7
✓ Published0🌍 Public
This interactive bar chart displays the population of the top 10 countries as of 2010, with each bar color-coded in green. The visualization uses a React front-end with D3 v5’s `scaleBand` for the categorical y-axis and `scaleLinear` for the continuous x-axis. Data is loaded dynamically from a CSV file hosted on GitHub, parsed with D3’s `csv` function, and rendered as SVG rectangles with tooltips formatted using SI prefixes. The code includes custom axis components for bottom and left ticks, with styling defined in an external HTML file.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed