Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Task9-Q1

Public visualization

Viewing a saved revision (read-only)

02a0d0e57c6e4bdf857c1363beb84351

Fork of Task9-Q1

0 stars0🌍 Public
Mmythripopuri2001@gmail.com
Last edited Apr 20, 2024
Created on Apr 20, 2024
Forked from Task9-Q1

This visualization displays the land area percentage of continents as a pie chart, with each continent’s proportion encoded by a distinct color and a hover tooltip revealing the exact percentage value. The chart is built using D3.js version 4.2.2, employing the `d3.pie` and `d3.arc` functions to generate the SVG paths, and `d3.scaleOrdinal` for color mapping. The customData array is hardcoded for the seven continents. The chart is responsive, redrawing on window resize by clearing the existing SVG and re-invoking the plot function.

AI-generated description