Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

q1 task9

Public visualization

q1 task9

0 stars0🌍 Public
Mmanisahiths54321@gmail.com
Last edited Apr 21, 2024
Created on Apr 21, 2024
Forked from Activity-6

This pie chart visualizes the percentage of land area per continent, with each slice colored and labeled in a static legend. The chart is rendered using SVG via D3.js (v4), where the `d3.pie()` generator and `d3.arc()` function compute the slice paths. Hovering over a slice triggers a tooltip showing the exact percentage, implemented with D3 mouse events. Data is hardcoded in the script, and the visualization includes a responsive resize handler that redraws the chart.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed