Skip to main content
100%

Question 1.1

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

A horizontal bar chart displays the 2010 populations of twenty countries, loaded from a remote CSV with D3's `csv` function. React renders SVG rects for data marks, with a linear scale mapping population to bar width and a band scale mapping country names to vertical positions. D3's `format` function abbreviates tick labels, replacing 'G' with 'B' for billions in the bottom axis. Mouseover tooltips, created with SVG `<title>` elements, show the 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