Activity_6_test
✓ Published1🌍 Public
This example shows a horizontal bar chart ranking the populations of ten countries in the year 2000, using a dataset loaded from a GitHub-hosted CSV file. The visualization is rendered as an SVG in a React application, with D3 v5 providing the scales and formatting: `d3.scaleBand` for the categorical country axis, `d3.scaleLinear` for the population values, and `d3.format` to abbreviate tick labels from millions to billions. The code imports separate React components for the axes and bars, and includes interactive tooltips via SVG `<title>` elements.
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