Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Ice 7 Pie Chart

Public visualization

Fork of Ice 7 Pie Chart

0 stars0🌍 Public
Mmanishcheruku
Last edited Mar 25, 2023
Created on Mar 25, 2023
Forked from Ice 7 Pie Chart

A pie chart displays the basic monthly cost of Netflix in ten countries, with slices sorted by price. D3 v5’s `pie` and `arc` generators build the chart, while a `scaleOrdinal` with `schemeCategory10` assigns colors. The code appends legend rectangles and text elements manually using SVG. Country names and costs are labeled in dollars, and hover events log slice values 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