Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

activity7_PieChart

Public visualization

Viewing a saved revision (read-only)

23c995c33e084dada39f0425345ceeb5

activity7_PieChart

0 stars1🌍 Public
Ssairamisetti3829@gmail.com
Last edited Nov 4, 2024
Created on Nov 1, 2024

This example shows the distribution of phone brand counts as a pie chart with labeled percentage slices and a color-coded legend. Using the D3.js library, it loads CSV data from a GitHub repository, calculates proportional arc segments via `d3.pie`, and renders them with `d3.arc`. Each slice displays the brand name and computed percentage, while the legend maps brands to their assigned colors. The chart is drawn as an SVG element, centered on an 800x500 canvas with a light background.

AI-generated description

A demonstration of reusable scatter plot.