🌍 Public
Viewing a saved revision (read-only)
d80fbb27d73e4ada917d72709c72d30f
Task9-Q1
A pie chart displays the percentage of land area per continent, with a color-coded legend and a hover tooltip that reveals each value. Built with D3.js v4, it uses `d3.pie` and `d3.arc` to generate the SVG paths, `d3.scaleOrdinal` for color mapping, and a custom tooltip that follows the mouse. The chart is resizable and re-renders on window resize. Static data is hardcoded in JavaScript, while the SVG includes a Gaussian blur filter for a subtle shadow effect.
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.