Skip to main content
100%

activity7_task1

✓ Published0🌍 Public
MMili Patel
Last edited Apr 6, 2025
Created on Apr 6, 2025
Forked from HTML Starter

This visualization shows smartphone market share as a static pie chart, with each brand’s proportional slice colored and labeled in a side legend. It loads CSV data via `d3-fetch`’s `csv`, parses numeric `MarketShare` values, and generates arcs using `d3-shape`’s `arc` and `pie` generators. The SVG is rendered in a 500x500 viewport, with colors assigned through `d3-scale`’s `scaleOrdinal` and `schemeCategory10`. Legends are manually appended as grouped rectangles and text elements, while the code imports solely the necessary D3 modules rather than the full library.

AI-generated description
MIT Licensed

Similar vizzes