Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

q1 task9

Public visualization

Viewing a saved revision (read-only)

916b7b9d1e5e43b6abf4dce8846a7dba

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

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.