JC Task-7 Q1
✓ Published1🌍 Public
This interactive bar chart displays the population of 30 countries as horizontal bars, sorted by country name for the year 2020. The visualization uses React with D3.js scales and SVG rendering to produce the chart, with axes formatted using D3’s `format` function to abbreviate large values. Data is loaded from a CSV file via `d3.csv` and processed in a custom `useData` hook, while tooltips show the population value on hover through native SVG `<title>` elements.
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