Skip to main content
100%

Fork of Fork of pie chart

✓ Published0🌍 Public
Ssaiabhishekmunnangi@gmail.com
Last edited Oct 27, 2025
Created on Oct 27, 2025
Forked from Fork of pie chart

This pie chart shows the distribution of posts across platforms (Twitter, Facebook, Instagram, YouTube, Reddit) using data from a CSV file. It displays both the count and platform name directly on each slice, with a legend to the right for clear identification. The visualization is built with D3.js v7, using `d3.pie()` to compute the arc segments and `d3.arc()` for the slice geometry, while `d3.scaleOrdinal()` with `d3.schemeTableau10` assigns colors. Data aggregation relies on `d3.rollup()` to count platform occurrences, and the SVG output reserves extra canvas space for the legend.

AI-generated description
MIT Licensed

Similar vizzes