Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Question 1

Public visualization

Viewing a saved revision (read-only)

b32d81f0639546acac820a48d247d322

Activity6_Question 1

0 stars0🌍 Public
JJaiyaGhanta@my.unt.edu
Last edited Oct 22, 2024
Created on Oct 17, 2024
Forked from Hello VizHub

This example shows a horizontal bar chart comparing the 2010 populations of 20 countries, with each bar labeled by country name. The visualization uses React to render SVG elements, while D3 v5 provides the `scaleBand` and `scaleLinear` functions for positioning bars, and the `format` function to abbreviate large population values. Data is loaded from a CSV file using D3’s `csv` method, and hover tooltips display the formatted population value for each bar.

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.