Skip to main content
100%

Tutorial7

✓ Published0🌍 Public
Cchintamanenithp@gmail.com
Last edited Apr 14, 2024
Created on Apr 14, 2024
Forked from Hello VizHub

This bar chart displays the population of 30 countries in 2020, with countries listed along the vertical axis and population values extending horizontally. The chart uses React components with D3.js scales (`scaleBand` and `scaleLinear`) to position bars and axes, rendered as SVG elements. Population data is loaded as CSV via D3’s `csv` method, and tick labels use D3’s `format` function with SI prefixes converted to billions. Hovering over a bar reveals its exact population value through an SVG `<title>` tooltip.

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