Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task1_Question1

Public visualization

Viewing a saved revision (read-only)

e923433a28f84acabcbb2b7963840ac9

Activity6_Task1_Question1

0 stars0🌍 Public
Ssaishruthik2361@gmail.com
Last edited Oct 21, 2024
Created on Oct 20, 2024

This bar chart displays the population of ten countries in the year 2000, using horizontal bars sorted by the categorical variable Country. The visualization is rendered as an SVG using React, with D3’s `scaleBand` mapping countries to the y-axis and `scaleLinear` mapping population values to the x-axis. Data is loaded from a remote CSV file via D3’s `csv` function, and each bar includes a tooltip showing the formatted population value using D3’s `format` API.

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.