Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

piechart-subhash

Public visualization

Viewing a saved revision (read-only)

b4ef39644fa54908ba99ca8c5a944dd2

piechart-subhash

0 stars0🌍 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