Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

7-q1

Public visualization

Viewing a saved revision (read-only)

7b2bde49223c47ee8e63360dd0a9cd08

7-q1

0 stars0🌍 Public
Nnikhithaaitha22@gmail.com
Last edited Nov 6, 2024
Created on Nov 5, 2024

This pie chart shows the distribution of mobile device types from a CSV dataset sourced from GitHub, displaying each device model’s count as a labeled slice with a legend. It uses D3.js v7 APIs including `pie()`, `arc()` for SVG path generation, `scaleOrdinal` for color mapping, and `csv()` for data loading. The code aggregates raw records by device model, then renders colored arcs with count labels and a legend, all within an SVG container styled with an external stylesheet.

AI-generated description