🌍 Public
Viewing a saved revision (read-only)
074a03760f6548a1a5881842c8f1349d
ObuleshPolicherla_Assignment2
This example shows a pie chart with an interactive legend that highlights the corresponding slice when a user hovers over a legend item. The visualization uses D3.js v6 to generate the chart through `d3.pie` and `d3.arc`, rendering the slices as SVG paths. The legend is built from the same data array, and hover events trigger a transition that changes the opacity of the matching pie segment. Data is embedded directly in the JavaScript source, with no external dataset.
AI-generated description