🌍 Public
Viewing a saved revision (read-only)
d6aca32e690c4f23b4978dfdcc409273
Activity6_task1
A horizontal bar chart displays the 2020 populations of 30 countries, sourced from a CSV file. Built with React and D3 v5, it uses `scaleBand` for the categorical country axis and `scaleLinear` for the population axis. SVG rectangles render the bars, with tooltips showing formatted values via `format('.2s')`. The chart includes custom `AxisBottom` and `AxisLeft` components for ticks and labels.
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.