🌍 Public
Viewing a saved revision (read-only)
344de60f82e04c34b408dcdc77afead9
act_6
A horizontal bar chart displays the populations of ten countries for the year 2000, sorted by country name. Each bar’s length encodes the numeric population value, with a tooltip showing the formatted value on hover. Built with React and D3 v5, the example uses `scaleBand` for the categorical y-axis and `scaleLinear` for the continuous x-axis. Data is loaded from a remote CSV via `d3.csv`, and axes and marks are rendered as SVG elements through custom React components.
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.