🌍 Public
Viewing a saved revision (read-only)
3b3d53508c9840a196ddecfa15fa744f
Fork of CV: pie chart
This example shows a pie chart visualizing device usage by value across four categories: Smartphone, Tablet, iwatch, and Laptop. The chart is rendered as SVG within a React component using d3.pie and d3.arc to generate the paths and d3.scaleOrdinal for color encoding. Labels are positioned at each slice’s centroid. The visualization uses static data defined inline and d3.v7 APIs to build the chart entirely in App.jsx.
AI-generated description