🌍 Public
Viewing a saved revision (read-only)
30cb31951c7744a698a882c463361d51
activity 6_Task 1
This visualization shows the population of ten countries in the year 2000 as a horizontal bar chart, with countries listed on the y-axis and population values on the x-axis. The chart uses React to render SVG elements, with d3.scaleBand and d3.scaleLinear handling the scaling, while the AxisBottom and AxisLeft components generate the tick marks and labels. Data is loaded from a remote CSV file via d3.csv, and population values are formatted using d3.format with the '.2s' notation, displaying 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.