🌍 Public
Viewing a saved revision (read-only)
e6acda5e2fe54d8d850dda134841ccad
Activity6_Task1
This visualization shows a horizontal bar chart of population data for ten countries from the year 2000, with each bar representing a country's population. The chart uses D3's `scaleBand` for the categorical y-axis and `scaleLinear` for the numerical x-axis. The data is loaded from a CSV file using D3's `csv` parser, and the visualization is rendered as SVG. The code uses React for the component structure, and D3's `format` function with a `.2s` specifier to display population values in billions. Hovering over a bar reveals a tooltip with the exact population value.
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.