Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Activity 6

Public visualization

Viewing a saved revision (read-only)

1ca920ad412b42a78d065a18e4ae35aa

Fork of Activity 6

0 stars0🌍 Public
Aajaykumarseelam@my.unt.edu
Last edited Apr 5, 2024
Created on Apr 5, 2024
Forked from Activity 6

This bar chart displays the 2020 populations of the top 30 countries, ranked vertically. Population values are formatted in billions using D3's `format` function, with a custom tick label replacing 'G' with 'B'. The visualization loads CSV data via `d3.csv` from a GitHub repository and renders SVG elements from React components. Axes and marks are built using D3's `scaleBand` and `scaleLinear`, with tooltips provided by 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.