Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

7-q1

Public visualization

Viewing a saved revision (read-only)

510715975f6b4bb4b65ca6ebd14beb0a

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

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.