Skip to main content
100%

acitivity6_task1(2)

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

This interactive bar chart displays the 2010 population data for 20 countries, ranked from highest to lowest. Built with React and D3 v5, it renders SVG rectangles whose lengths are scaled linearly by population. The chart uses D3's `scaleBand` for categorical country labels, `scaleLinear` for quantitative values, and a custom number formatter that abbreviates large figures with 'B' for billions. Data loads remotely as CSV through D3's `csv` function, with tooltips showing formatted population values.

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