Skip to main content
100%

Pie Chart

✓ Published0🌍 Public
VVAbhiram99
Last edited Mar 29, 2023
Created on Mar 28, 2023
Forked from Pie Chart

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 description
MIT Licensed

Similar vizzes