Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ICE 7 - Pie Chart

Public visualization

Viewing a saved revision (read-only)

dd40696f3fac4b599201c1667d9f0f78

ICE 7 - Pie Chart

0 stars0🌍 Public
NNaveen Kumar
Last edited Mar 30, 2023
Created on Mar 30, 2023
Forked from HTML Starter

This visualization displays the monthly subscription costs for YouTube Premium in ten different countries, using a pie chart to compare prices in US dollars. Each slice is colored using the `scaleOrdinal` and `schemeCategory10` color scales, with a legend on the right listing each country and its corresponding price. The code utilizes D3 v5 APIs including `pie`, `arc`, and `csv` to parse data from a GitHub Gist, sorting the values in descending order before rendering. The SVG is statically sized, and hover interactions log data to the console.

AI-generated description

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

See also React Starter.