🌍 Public
Viewing a saved revision (read-only)
891de9a845fd4dbe96d7d294b088d39a
Question 1
This example shows the populations of ten countries in the year 2000 as a horizontal bar chart, with country names on the y-axis and population values on the x-axis formatted in billions. Built with React and D3 v5, it uses `d3.scaleBand` and `d3.scaleLinear` to position rectangular marks, and renders axes via custom SVG components. Data is loaded asynchronously from a CSV file using `d3.csv` and truncated to the first ten rows.
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.