Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

harsha activity6

Public visualization

Viewing a saved revision (read-only)

88c0a7aee1cf43d5b22a9bedc000e7d1

harsha activity6

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

This bar chart shows the top 30 countries by population in 2020. The visualization uses React to render SVG elements and d3-scaleBand for the categorical y-axis and d3-scaleLinear for the quantitative x-axis, with population values formatted from raw data. Data is loaded asynchronously via d3.csv from a GitHub-hosted CSV file. A horizontal bar for each country is created with SVG rect elements, and axis ticks are generated using the scale functions, with tooltips provided 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.