Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Question1(2)

Public visualization

Viewing a saved revision (read-only)

65c0d2d29ea74b018b42362d3bf00976

Question1(2)

0 stars0🌍 Public
Nnsairitwikreddy@gmail.com
Last edited Apr 10, 2024
Created on Apr 10, 2024
Forked from Hello VizHub

This horizontal bar chart shows population figures for 20 countries in 2010, with each bar’s length representing the population value and country names listed on the vertical axis. The visualization uses React components to render SVG elements, with d3.scaleBand for the categorical y-axis and d3.scaleLinear for the numeric x-axis. Population values are formatted using d3’s format function, converting units to billions with the letter B. Data comes from a CSV file loaded via d3.csv, and hover tooltips display the exact formatted population using SVG title elements.

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.