Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of ice-7 q2

Public visualization

Viewing a saved revision (read-only)

dd87f495941f4ace8c8acd74948e9540

Fork of ice-7 q2

0 stars2🌍 Public
Nnagalakshmibadineedi2@gmail.com
Last edited Apr 1, 2025
Created on Apr 1, 2025
Forked from ice-7 q1

This example shows the distribution of air quality categories—such as Good, Moderate, Unhealthy, and Unhealthy for Sensitive Groups—as a pie chart with an interactive legend and tooltip. Using d3.rollup to aggregate counts from a hardcoded dataset, the SVG chart assigns each category a color-coded slice and displays its proportion. The code relies on D3 v7’s pie and arc generators, plus d3.select for DOM manipulation, with a tooltip that appears on hover.

AI-generated description