Skip to main content
100%

piechart-subhash

✓ Published0🌍 Public
SSubhash
Last edited Oct 27, 2025
Created on Oct 27, 2025

This example visualizes YouTube channel analytics as an animated, reusable pie chart that cycles through five metrics—Views, Likes, Comments, Watch Time, and Subscribers Gained—every two seconds. Built with D3 v6, it uses `d3.pie` and `d3.arc` to generate slices, `scaleOrdinal` with `schemeTableau10` for colors, and includes labeled leader lines plus a legend. The chart reads data from a CSV gist, parsing numeric fields, and renders as SVG with a `setInterval` driving the metric rotation.

AI-generated description
MIT Licensed

Similar vizzes