Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ICE7-PieChart-Part2

Public visualization

Viewing a saved revision (read-only)

27de178e8a244f66a6283c07e2ed6fb0

ICE7-PieChart-Part2

0 stars0🌍 Public
Sskambhore04
Last edited Mar 29, 2022
Created on Mar 29, 2022
Forked from HTML Starter

This example visualizes product revenue shares as a pie chart, with five cosmetic product categories (e.g., Eyeshadows, Mascara) and their corresponding percentages. A legend with colored dots and labels identifies each category, while the chart’s slices are labeled directly with product names. The visualization uses D3 v4’s `d3.pie` and `d3.arc` to generate the chart, `d3.scaleOrdinal` with `d3.schemeCategory10` for colors, and SVG rendering within a React framework. The data is hardcoded in the script, with all values summing to 100 percent.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.