activity 6_Task 1
✓ Published0🌍 Public
This bar chart displays the population of 20 countries in 2010, ordered by country name. Built with React and rendered as an SVG, it uses D3 v5 scales and axes: a linear scale for population and a band scale for countries. The chart applies custom tick formatting, converting values like '1.2G' to '1.2B', and includes tooltips on each bar. Data loads from a remote CSV via D3's `csv` function.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed