Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

activity 6_Task 1

Public visualization

Viewing a saved revision (read-only)

c769b24a68b04219bb88aa9855dc493f

activity 6_Task 1

0 stars0🌍 Public
PPradhyumna Poralla
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from Hello VizHub

This example shows a horizontal bar chart comparing the populations of ten countries in the year 2000, with green bars arranged in descending order by population. The visualization uses React to render SVG elements, with D3 v5’s `scaleBand` and `scaleLinear` managing the axis scales and `csv` loading the dataset from a GitHub-hosted CSV file. Interactive tooltips appear on hover, displaying each value formatted in billions with D3’s `format` function.

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.