Activity 6_Task 1 Question 1.1
✓ Published4🌍 Public
This bar chart displays the top 10 countries by population for the year 2000, using horizontal bars to facilitate comparison. Built with React and SVG, the visualization renders population values on a linear scale, with formatted tick labels (e.g., "1.2B") for readability. The code leverages D3.js's `scaleBand`, `scaleLinear`, `max`, and `format` functions for layout and number formatting, while the data is fetched and processed from a CSV file using D3's `csv` method. The chart includes clear axis labels and a title, all styled with CSS.
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