Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Pie Chart

Public visualization

Viewing a saved revision (read-only)

fa3f916b915149e4859c2ae4c5788fce

Fork of Pie Chart

0 stars0🌍 Public
NNikitha123171
Last edited Mar 26, 2023
Created on Mar 26, 2023
Forked from Pie Chart

This pie chart visualizes the basic subscription cost of Netflix across ten countries, with each slice’s size and color mapped to the numeric cost value and a legend listing country names and their corresponding prices in dollars. The chart renders as an SVG using D3 v5’s `pie`, `arc`, and `scaleOrdinal` functions, with data loaded from a CSV via `d3.csv` and sorted descending before rendering. Interactive mouseover events log the basic cost to the console, while custom text elements style the legend and title.

AI-generated description

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

See also React Starter.