Skip to main content
100%

Activity6_population-2010

✓ Published0🌍 Public
Aanjalimadhavi98@gmail.com
Last edited Oct 19, 2024
Created on Oct 19, 2024
Forked from Activity6

This bar chart displays the populations of 20 countries in 2010, with countries listed on the vertical axis and population values (formatted in billions) on the horizontal axis. Built with React and D3 v5, it uses `scaleBand` for the categorical y-axis, `scaleLinear` for the numeric x-axis, and SVG `<rect>` elements for bars. The data is loaded from a CSV file via `d3.csv`, with the population column converted from a string to a number by multiplying by 1000.

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