Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity -6_ Task-2

Public visualization

Viewing a saved revision (read-only)

a039b62c8b38488aa0577147c91482df

Activity -6_ Task-2

0 stars0🌍 Public
1180030215cse@gmail.com
Last edited Oct 21, 2024
Created on Oct 21, 2024
Forked from Hello VizHub

This horizontal bar chart displays the populations of the top 20 countries for the year 2020, using green bars sorted along a linear scale. The visualization is built with React and D3 v5, using `scaleBand` and `scaleLinear` for positioning, while `csv` loads the dataset from a GitHub repository. SVG rendering provides the plot, with axis tick formatting converting values to billions via the D3 `format` function. Hover tooltips show precise population values through native 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.