Q1_piechart
✓ Published1🌍 Public
This interactive pie chart visualizes the worldwide gross revenue of ten top-grossing movies, with each slice labeled by movie title and a hover tooltip displaying exact values. A color legend on the right highlights slices on mouseover by dimming non-matching arcs. The example uses d3.pie and d3.arc for chart construction, d3.select for SVG manipulation, and transitions to animate opacity changes. Data loads from a CSV file using d3.csvParse, with colors generated via HSL values.
AI-generated descriptionISC Licensed