Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

activity9_Question1

Public visualization

Viewing a saved revision (read-only)

6686b8a17ba749b8a9fdf79378e9548c

activity9_Question1

0 stars0🌍 Public
BBindumadhavi
Last edited Apr 27, 2024
Created on Apr 26, 2024
Forked from HTML Starter

This example displays a pie chart of net electricity consumption worldwide from 1980 to 2022, sourced from a CSV file via a GitHub gist. It uses D3 v5 APIs including `pie`, `arc`, `scaleOrdinal`, and `schemeCategory10`. The SVG renders fifteen data slices, with a legend listing years and values formatted with a custom suffix. Data is sorted in descending order before rendering.

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.