Skip to main content
100%

Q1-1

✓ Published0🌍 Public
Ppnamitha46@gmail.com
Last edited Oct 19, 2024
Created on Oct 19, 2024
Forked from Hello VizHub

This horizontal bar chart ranks the ten most populous countries in the year 2000, with population values formatted in billions via a custom SI-prefix function. Built with React and D3 v5, it uses `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis. SVG rectangles render the bars, while `AxisBottom` and `AxisLeft` generate the ticks and labels, and hover tooltips display each value. Population data is loaded from a remote CSV using D3’s `csv` parser.

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