Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Pie Chart

Public visualization

Viewing a saved revision (read-only)

a8a36d5529b343449f3ac2f6de2732e8

Fork of Pie Chart

0 stars0🌍 Public
Aabh9294
Last edited Sep 2, 2023
Created on Sep 2, 2023
Forked from Pie Chart

This pie chart visualizes the basic monthly cost of Netflix subscriptions in different countries, displaying the top 10 most expensive markets. The chart uses D3.js v5 with SVG rendering, where `d3.pie()` generates the arc data and `d3.arc()` draws the segments, colored with `d3.scaleOrdinal` and `schemeCategory10`. A legend on the right lists each country with its corresponding color swatch and cost in US dollars. Data is loaded as CSV from a GitHub gist and sorted descending before slicing, with hover interactions logging values to the console.

AI-generated description

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

See also React Starter.