🌍 Public
Viewing a saved revision (read-only)
f658409112784235b3bad3e7b92b74dc
Learn pie chart with D3.js
This pie chart visualizes worldwide operating system market share for Android, Windows, and iOS, using percentage values from the displayed data array. The D3.js v4 code creates an SVG-based pie chart by applying `d3.pie` to the data, drawing arcs with `d3.arc`, and coloring each slice via `d3.scaleOrdinal` with the `schemeCategory10` palette. Labels for each platform and its percentage are placed at arc centroids. The chart is rendered within a 500×300 SVG canvas, with the data sourced from the provided JavaScript object.
AI-generated descriptionA program that shows the top 10 most populous countries as a bar chart.