🌍 Public
Viewing a saved revision (read-only)
5d5638902dee451dbea185337375802e
Activity 6 Question 1
This visualization is a horizontal bar chart showing the population of ten countries in the year 2000. The bar lengths are proportional to population values, with a tooltip revealing the exact number on hover. The chart uses a green fill for the bars and a light blue gridline color. The visualization is built with React and D3 v5, using `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis. Data is loaded from a CSV file via `d3.csv`, and the axes are drawn with custom React components. The chart is rendered as SVG, and tick labels use D3's `format('.2s')` to display values in billions.
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.