🌍 Public
Viewing a saved revision (read-only)
8ac35952045245d1b4c4e6cdf689147f
Activity 7
This donut chart displays the mobile market share percentages of various brands for 2024, with each slice labeled directly on the chart. A supplementary legend lists each brand alongside its corresponding percentage. Built with D3 v7, the visualization uses `d3.pie()` to compute slice geometry, `d3.arc()` for rendering paths, and `d3.scaleOrdinal` with the Set3 color scheme. The data is loaded from a remote CSV file via `d3.csv()`, and the chart is rendered as SVG with interactive-free, static labels positioned using the arc centroid method.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.