Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Question1.2

Public visualization

Viewing a saved revision (read-only)

5903ad6400624a0199ec2739c1d77536

Activity6_Question1.2

0 stars0🌍 Public
PPreethi Medepalli-91
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This example shows a horizontal bar chart of population figures for the top 20 countries in 2010, with country names on the y-axis and population counts on the x-axis. The chart uses React with D3 v5 scales and axes, loading data from a remote CSV file via `d3.csv`. Bars are rendered as SVG `rect` elements with a tooltip that formats values using `d3.format`, and the visualization includes custom axis components built with `scaleBand` and `scaleLinear`.

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.