ACT-7_TASK-1
✓ Published0🌍 Public
This example shows a horizontal bar chart of 2020 population figures by country, rendered as an SVG in React. It imports D3 v5 modules for data loading (`csv`), scales (`scaleBand`, `scaleLinear`), and formatting, while custom React components (`AxisBottom`, `AxisLeft`, `Marks`) handle the visualization. The chart uses a linear population axis and a banded country axis, with axis labels and tick formatting converting billions to a readable "B" suffix. Data is loaded asynchronously from a CSV source, and the visualization responds with a loading state until ready.
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