Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Nagalakshmi

Public visualization

Viewing a saved revision (read-only)

e8c3812ad34640f9a8c1135eb2e404bb

Nagalakshmi

0 stars0🌍 Public
NNagalakshmi Thota
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

A horizontal bar chart displays the population of ten countries in the year 2000, with countries listed on the y-axis and population values on the x-axis. Built with React and D3 v5, it uses `scaleBand` and `scaleLinear` to map data, rendering SVG rectangles for bars. The chart fetches data from a GitHub CSV and formats axis ticks using D3's `format` function. Tooltips on each bar show the exact population value.

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.