🌍 Public
Viewing a saved revision (read-only)
58babfdf4ff24d5885a9c6cbf31237e6
DV TASK-8(Q1)
This example shows a horizontal bar chart comparing the populations of ten countries in the year 2000. The visualization uses React to render SVG elements, with D3 v5 scales (`scaleBand` and `scaleLinear`) mapping country names and population values to positions and bar lengths. The data is loaded as CSV from a GitHub repository, with population values converted from thousands. Tooltips display formatted population values, and axes are labeled with a tick format that abbreviates large numbers using the `format` API.
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.