🌍 Public
Viewing a saved revision (read-only)
60c5ecd5a94d40cca7155699fb104e93
Activity6_Q1.1
A horizontal bar chart displays the populations of ten countries in the year 2000. The visualization uses React to render an SVG, with D3 v5 providing the scaleBand and scaleLinear functions for positioning bars and axes. Data is loaded asynchronously from a CSV file via d3.csv. Custom React components define the axes and marks, with hover tooltips showing formatted population values.
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.