🌍 Public
Viewing a saved revision (read-only)
3f9ae46372dd4a45905df4a2bfd92a25
Jaynica Nunna
A horizontal bar chart displays the populations of ten countries for the year 2000, with the data loaded from a CSV file on GitHub. Built with React and D3 v5, it uses `scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis, rendering bars as SVG rectangles. Population values are formatted using `format('.2s')` to display in billions, and each bar includes a tooltip via a native SVG `<title>` element. The chart includes styled axis ticks and labels, with the x-axis labeled "POPULATION-2020".
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.