🌍 Public
Viewing a saved revision (read-only)
2ca5f7464d1549b6866d1e7f1fb980db
Activity6_Question1.1
This bar chart displays the populations of ten countries in the year 2000, using horizontal bars colored in light green. The chart is built with React and D3 v5, rendering as an SVG. It uses `d3.scaleBand` for the categorical y-axis (countries) and `d3.scaleLinear` for the quantitative x-axis (population), with tick marks styled via CSS. Population values are formatted using `d3.format` and shown as tooltips. Data is loaded from a remote CSV file and processed with `d3.csv`.
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.