Learn D3.js
✓ Published0🌍 Public
This example shows worldwide operating system market share for Android, Windows, and iOS as a labeled pie chart. It renders in SVG using D3 v4, with the `d3.pie` layout generating arc data from hardcoded percentages and `d3.arc` producing the path geometry. A `d3.scaleOrdinal` with `d3.schemeCategory10` assigns colors, while arc centroid labels display each platform and its percentage directly on the chart. The visualization demonstrates basic pie chart construction with group elements and path/text bindings.
AI-generated descriptionMIT Licensed