Skip to main content
100%

Activity-7.1_Q1

✓ Published0🌍 Public
SSrihith Reddy Gaddam
Last edited Apr 11, 2025
Created on Apr 11, 2025
Forked from Hello VizHub

This D3.js visualization displays global smartphone market share as a pie chart, showing the proportion of users for each brand. The chart uses a custom color palette to distinguish brands and includes a legend listing each brand alongside its corresponding color. The code aggregates user counts by brand using `d3.rollup` and `d3.sum`, then renders the pie with `d3.pie` and `d3.arc` within an SVG. A custom `pieChart` function provides a fluent API for setting dimensions, data, and labels, making the chart configurable. The data is loaded from a remote CSV file containing smartphone usage statistics.

AI-generated description

A D3.js Pie Chart visualizing smartphone usage by brand based on global data.

MIT Licensed

Similar vizzes