Pie Chart
✓ Published0🌍 Public
This pie chart visualizes the basic monthly Netflix subscription cost across twelve countries, using D3 v5's `pie` and `arc` functions to generate the SVG segments and a categorical color scale (`scaleOrdinal` with `schemeCategory10`) to distinguish each nation. Slices are sorted by cost, and an interactive legend, built with `selectAll` and appended SVG `rect` and `text` elements, displays each country’s name and price in dollars. The data is loaded from a CSV file hosted on a GitHub gist, and mouseover events log the corresponding cost to the console.
AI-generated descriptionMIT Licensed