Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of pie chart

Public visualization

Fork of pie chart

0 stars0🌍 Public
Kkruthanreddy812@gmail.com
Last edited Mar 28, 2026
Created on Mar 28, 2026
Forked from pie chart

This fork of a pie chart shows the distribution of laptop sales by company, using aggregated quantities from a CSV dataset loaded via `d3.csv`. The visualization computes per-company totals, then renders a standard SVG pie with `d3.pie` and `d3.arc`, scaling colors with `d3.scaleOrdinal` and `schemeCategory10`. A single centered group translates the chart to the middle of a 600×450 canvas, with each slice’s fill mapped from the company name.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed