Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Act6_Q1.1

Public visualization

Viewing a saved revision (read-only)

aea6bcbbd5b2440a82e9b2c291d11811

Act6_Q1.1

0 stars1🌍 Public
Nnumitha
Last edited Apr 5, 2024
Created on Apr 5, 2024
Forked from Hello VizHub

This bar chart displays the top ten countries by population in the year 2000, using a horizontal layout with a logarithmic scale for the population axis. The visualization is built with React and D3 v5, using `scaleBand` for the categorical country axis and `scaleLinear` for the numeric population axis. Data is loaded from a CSV file via D3's `csv` function, with population values calculated by multiplying the raw data by 1000. The chart uses SVG rendering with interactive tooltips showing formatted population values on hover.

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.