Skip to main content
100%

Population-2010

✓ Published0🌍 Public
Nnarasimhacharyulu010@gmail.com
Last edited Apr 3, 2024
Created on Apr 1, 2024
Forked from Hello VizHub

This interactive bar chart visualizes the population of 20 countries in 2010, using horizontal bars sorted by country name. The React app loads CSV data via D3’s `csv` function, then renders SVG rectangles positioned with `scaleBand` and `scaleLinear`. Axes are drawn with custom components, and hover tooltips display formatted population values using D3’s `format` function. The chart highlights population magnitudes with a green fill, using a bottom axis with tick labels converted from gigabytes to billions.

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