Activity_6_Task_1_q2
✓ Published1🌍 Public
This interactive bar chart displays the population of 20 countries in 2010, sourced from a CSV dataset loaded via `d3.csv`. Rendered as an SVG using React, the chart maps countries to the y-axis and population values to the x-axis using `d3.scaleBand` and `d3.scaleLinear`. The D3 library formats axis tick labels (e.g., converting billions) and provides tooltips on hover. Custom components like `AxisBottom` and `Marks` structure the visualization, while CSS styles the bars and gridlines.
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