Fork of Pie Chart
✓ Published0🌍 Public
This example visualizes the basic subscription cost of Netflix in different countries using a pie chart, with a legend listing each country and its corresponding price. The chart is rendered as SVG using D3 v5, with the pie layout (`d3.pie`), arc generator (`d3.arc`), and ordinal color scale (`d3.scaleOrdinal` with `schemeCategory10`). Data is loaded asynchronously from a CSV file via `d3.csv` and sorted descending by cost before rendering. The visualization includes mouse-over logging of each segment's value and uses custom number formatting to display dollar amounts.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed