Skip to main content
100%

demo pie

✓ Published0🌍 Public
Gguitmonk-1290
Last edited May 10, 2023
Created on May 10, 2023
Forked from Pie Chart

This demo shows the basic cost of Netflix subscriptions across ten countries, displaying each country's price as a segment in a pie chart with corresponding color-coded legends. The data is loaded from a CSV file hosted on GitHub Gist and sorted in descending order. Using d3.pie and d3.arc, the chart renders as SVG with d3.scaleOrdinal and schemeCategory10 for colors, while d3.select appends legend rectangles and text for each country and its price in dollars.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes