Skip to main content
100%

activity 6 task1

✓ Published0🌍 Public
Sshettisowmya01@gmail.com
Last edited Oct 18, 2024
Created on Oct 16, 2024
Forked from Hello VizHub

This example displays a horizontal bar chart of the 2020 population for 30 countries, sorted by country name. It uses D3’s `scaleBand` and `scaleLinear` to map the data, which is fetched from a remote CSV file via `d3.csv`. The bars are rendered as SVG rectangles with D3 axes, and a title tooltip shows the abbreviated population value. The code imports D3 functions like `arc`, `pie`, and `max` from the `d3` namespace and leverages React for the UI.

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