Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Hello VizHub! - DV

Public visualization

Viewing a saved revision (read-only)

fb64a718f9f441b19538b6f0f2dfacf7

Hello VizHub! - DV

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

This example displays a horizontal bar chart of the top ten countries by population in the year 2000. The chart uses D3’s `scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis, with bars rendered as SVG `rect` elements via React. Hovering over a bar shows a tooltip with the population value formatted using D3’s `format`. The data is loaded asynchronously from a CSV file using `d3.csv`.

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.