Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Task9_Q1

Public visualization

Task9_Q1

0 stars2🌍 Public
Aanusharamana0@gmail.com
Last edited Apr 27, 2024
Created on Apr 27, 2024
Forked from HTML Starter

This visualization displays the top 15 countries by net electricity consumption worldwide from 1982 to 2022 as a pie chart, with a color-coded legend listing each year and its corresponding value in Rs. The chart is rendered as SVG using D3 v5, with `d3.pie` and `d3.arc` generating the segments and `d3.scaleOrdinal` with `schemeCategory10` assigning colors. Data is loaded via `d3.csv` from a GitHub Gist, sorted descending, and sliced before rendering.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed