Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of ice-7 q2

Public visualization

Viewing a saved revision (read-only)

5869eceba4cb4b8ba13a19549e12b418

Fork of Fork of ice-7 q2

0 stars0🌍 Public
Bbhargavinalamothu@gmail.com
Last edited Apr 1, 2025
Created on Apr 1, 2025
Forked from Fork of ice-7 q2

This example displays a pie chart with labeled slices, where each slice’s color corresponds to a categorical label and its size reflects a numeric value. The visualization is rendered as static SVG using D3.js v6, with the chart centered in a 500×500 viewport and slice labels placed at each arc’s centroid. Data is loaded asynchronously from a remote JSON file via `d3.json`. The chart uses `d3.pie` to compute arc segments, `d3.arc` for path geometry, and `d3.scaleOrdinal` with `d3.schemeCategory10` to assign colors.

AI-generated description