Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of D3 Starter

Public visualization

Viewing a saved revision (read-only)

295cb40d6f8b445081bfc7326c0473c3

Fork of Fork of D3 Starter

0 stars0🌍 Public
Kkruthanreddy812@gmail.com
Last edited Mar 28, 2026
Created on Mar 28, 2026
Forked from Fork of D3 Starter

This visualization displays laptop sales as a pie chart, with each slice representing the total quantity sold per company. It uses D3.js version 3, specifically leveraging the `pie` and `arc` generators to compute slice geometry, and `scaleOrdinal` with `schemeCategory10` to assign colors. The data is loaded from a remote CSV file via D3's `csv` function, then aggregated by company before rendering. The chart is drawn as an SVG element, centered within a 600x450 pixel canvas, with a 150-pixel radius for the pie.

AI-generated description