Skip to main content
100%

activity 6_Task 1

✓ Published0🌍 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.
MIT Licensed

Similar vizzes