Task9and10_PR_1
✓ Published0🌍 Public
This example presents a pie chart visualizing the distribution of favorite fruits among students, using a dataset of six categories such as Mango, Orange, and Plum. The chart is rendered as an SVG with D3 v7, employing `d3.pie()` to compute arc angles and `d3.arc()` to generate the path shapes. A categorical color scale (`d3.scaleOrdinal` with `schemeCategory10`) assigns distinct colors to each segment, while a custom legend lists the fruit categories alongside colored rectangles. The visualization also includes axis labels and a GitHub link pointing to the raw CSV data source.
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.
MIT Licensed