Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

2Q

Public visualization

Viewing a saved revision (read-only)

3e9980b4714e4d8daed75571df538e09

2Q

0 stars0🌍 Public
Ssairathan.p045@gmail.com
Last edited Mar 30, 2026
Created on Mar 30, 2026

This example visualizes operating system market share using a pie chart with external labels and a legend. It displays Windows, macOS, Linux, and ChromeOS with their respective percentages computed from the raw CSV data. The visualization uses `d3.pie()` to compute slice angles, `d3.arc()` for rendering paths, and `d3.scaleOrdinal` with `schemeCategory10` for colors. SVGs are drawn via `d3.select`, and slices include white strokes, while labels are positioned using trigonometric calculations based on mid-angles.

AI-generated description