Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 6_Question 1

Public visualization

Viewing a saved revision (read-only)

8741e6f866924c22984b8823cb411dd6

Activity 6_Question 1

0 stars1🌍 Public
Aanusha.chilkamarri26@gmail.com
Last edited Apr 3, 2024
Created on Apr 3, 2024
Forked from Hello VizHub

A horizontal bar chart displays the populations of the top ten countries in 2020, ranked by country name. The chart uses D3 v5 scales, including `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis, with values formatted to billions using `d3.format`. React renders the SVG elements, while D3’s `csv` loads and parses the population data from a GitHub-hosted CSV file. Each bar includes a native SVG `<title>` element for tooltips.

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.