Skip to main content
100%

activity6_q1

✓ Published0🌍 Public
YYeruva Snehith Reddy
Last edited Oct 21, 2024
Created on Oct 20, 2024
Forked from Hello VizHub

This bar chart displays the population of ten countries in the year 2000, with country names on the y-axis and population on the x-axis. The chart uses React to render SVG elements, with D3’s `scaleBand` and `scaleLinear` for scales, and `max` to determine the domain. Data is loaded asynchronously from a CSV file via D3’s `csv` function and formatted with `format` using SI notation (e.g., “B” for billions). Axes are custom components (`AxisBottom`, `AxisLeft`) and rectangles include a native SVG `<title>` tooltip.

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