🌍 Public
Viewing a saved revision (read-only)
3da0f044b6294a35ad6023ab64a5a782
Mano T9 - Q1
This example shows a pie chart of social media platform usage percentages, with a legend displaying each platform’s name and share. The visualization is rendered as an SVG and uses D3’s `pie` and `arc` generators to compute and draw the segments, while `scaleOrdinal` with `schemeCategory10` assigns colors. Data is loaded via D3’s `csv` function from a GitHub gist, and the legend is built manually with appended `rect` and `text` elements.
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.