Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

activity6_Question1.1

Public visualization

Viewing a saved revision (read-only)

4773d19b420f43a2bfea8460918c62d3

activity6_Question1.1

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

This visualization is a horizontal bar chart displaying the population of ten countries in the year 2000, with bars sorted by country name and labeled with a formatted tick axis (e.g., “1.2B” for billions). The chart uses React components to render SVG elements, with D3 v5 functions such as `scaleBand`, `scaleLinear`, and `max` to compute scales and domains. Data is loaded asynchronously from a remote CSV file using D3’s `csv` parser, and each bar includes a native SVG `<title>` tooltip showing the 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.