🌍 Public
Fork of Pie Chart
This pie chart visualizes the premium monthly cost of Netflix subscriptions across different countries, displaying the top 10 most expensive plans. The chart uses D3 v5’s `pie` and `arc` generators to create SVG segments, with `scaleOrdinal` and `schemeCategory10` for color mapping. Each slice’s fill color corresponds to the cost value, and a legend lists country names with their respective prices in US dollars. Data is loaded asynchronously from a CSV file hosted on GitHub Gist via `d3.csv`, and the render function sorts the data by premium cost before slicing the top ten entries.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed
Comments
Sign in to join the discussion.