🌍 Public
Viewing a saved revision (read-only)
48d6d2e92362409688c7777a061dbc59
Question 2: Pie Chart
This example visualizes product revenue distribution as an interactive pie chart, with slices colored by product and sized by aggregated revenue from a CSV file loaded via `d3.csv()`. The SVG-based chart uses `d3.pie()` and `d3.arc()` to generate the slices, while hovering highlights a slice with a `transition` animation. A legend and title accompany the chart, and the background uses a CSS gradient. The chart sorts products by revenue and uses an ordinal color scale.
AI-generated description