Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity8_Task1

Public visualization

Viewing a saved revision (read-only)

a7c1487491ec4efaa04340b6405e31db

Activity8_Task1

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

A horizontal bar chart displays the 2020 populations of 30 countries, sorted alphabetically by country name, with green bars extending from a blue left axis. The visualization uses React to render SVG elements, with d3.scaleBand for the categorical y-axis and d3.scaleLinear for the quantitative x-axis, formatted using d3.format. Population data is loaded from a CSV file via d3.csv, and hover tooltips reveal exact values through SVG title elements.

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.