Skip to main content
100%

ACT-7_TASK-1

✓ Published0🌍 Public
NNukaShravanKumar
Last edited Jul 15, 2023
Created on Jul 15, 2023
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes