Skip to main content
100%

Task 1 question 1

✓ Published0🌍 Public
Rraaghaveramireddy@my.unt.edu
Last edited Oct 23, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This example displays a horizontal bar chart of the population for ten countries in the year 2000, sourced from a CSV file. The chart uses `d3.scaleBand` for the categorical y-axis and `d3.scaleLinear` for the quantitative x-axis. React components render SVG `<rect>` marks and axes, with D3’s `format('.2s')` converting large numbers into abbreviated labels like “1.2B”. Loading is handled by `useData` with `d3.csv`, and tooltips appear via SVG `<title>` elements.

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