Skip to main content
100%

Population-2000

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

This bar chart displays the population of ten countries in the year 2000, with each bar’s length proportional to the population value. The visualization uses D3 v5’s `csv` loader to fetch data from a GitHub-hosted CSV file, then renders the chart as SVG elements. React and ReactDOM manage the interface, while D3’s `scaleBand` and `scaleLinear` position the bars and axes, and `format` with SI prefixes converts tick labels to billions. The chart includes a custom tooltip via SVG `<title>` elements, showing the formatted population on hover.

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