Activity 6 task 1
✓ Published1🌍 Public
This example displays a horizontal bar chart ranking the populations of ten countries for the year 2000. The visualization uses React to render SVG elements, with D3 v5 APIs including `scaleBand`, `scaleLinear`, `csv`, and `format` to load data, position bars, and format tick labels. Country names align on the left axis while population values appear on the bottom axis, and each bar includes a native SVG tooltip showing the formatted population value.
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.
MIT Licensed