🌍 Public
Viewing a saved revision (read-only)
c620bfd2e91e49c3b6f28636016ce3a0
Q1_piechart
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 descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.