Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

ICE 7 - Pie Chart

Public visualization

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.

Comments

Sign in to join the discussion.

MIT Licensed