Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task1_Question2

Public visualization

Viewing a saved revision (read-only)

1d4af68d5dd84fa594a9a0038391b600

Activity6_Task1_Question2

0 stars0🌍 Public
Ssaishruthik2361@gmail.com
Last edited Oct 21, 2024
Created on Oct 21, 2024
Forked from Hello VizHub

This visualization displays the 2010 population of 20 countries as a horizontal bar chart, using a D3 scaleBand for the categorical country axis and a scaleLinear for the numeric population axis. The chart is rendered as SVG in React, with the population data fetched as CSV from a GitHub repository. Axis components generate tick marks and labels, while the Marks component draws green rectangles whose width encodes population, with a native SVG `<title>` tooltip showing the formatted value in billions.

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.