Activity 6
✓ Published1🌍 Public
This horizontal bar chart shows population figures for ten countries in the year 2000, with each bar’s length proportional to its population. The visualization uses a linear x-scale and a band y-scale, rendering rectangles in SVG. Data loads from a CSV file via `d3.csv`, and the chart’s axes are generated using `d3.axisBottom` and `d3.axisLeft`. The code demonstrates modular ES6 import structures and D3 v7’s selection and data-binding methods.
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