Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Pie Chart

Public visualization

Fork of Pie Chart

0 stars0🌍 Public
BBabar Farooq
Last edited Sep 11, 2023
Created on Sep 11, 2023
Forked from Pie Chart

This visualization shows the basic cost of Netflix subscriptions across ten countries, sorted in descending order and encoded as a pie chart with a corresponding legend. D3 v5’s `pie`, `arc`, and `scaleOrdinal` APIs generate the SVG segments, while `csv` loads the data from a GitHub gist. An interactive mouseover logs each segment’s value to the console, and labels and legend values are appended as SVG texts with formatting from a custom number function.

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