Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Question_1

Public visualization

Viewing a saved revision (read-only)

bd803843363a4bd496e0e64d39733b9e

Question_1

0 stars1🌍 Public
Nnandasaipalankius@gmail.com
Last edited Oct 22, 2024
Created on Oct 21, 2024
Forked from Hello VizHub

This example shows population data for 20 countries as a horizontal bar chart. The bars’ lengths encode each country’s population value, with country names on the y-axis and a bottom axis formatted in billions. Built with React and D3 v5, it uses `scaleBand` for the y-axis, `scaleLinear` for the x-axis, and SVG `rect` elements. The CSV data is loaded via `d3.csv`, and tooltips display the formatted population using the D3 `format` API.

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.