🌍 Public
Viewing a saved revision (read-only)
7cda48d501f447bfa3b525a40e9d273c
Pie chart
This pie chart displays the distribution of iris species from a CSV dataset loaded via `d3.csv`. Each slice represents one flower, and the chart uses `d3.pie` and `d3.arc` to generate the arcs, with colors assigned by `scaleOrdinal` and `schemeCategory10`. Two legends are rendered—one inside the chart function and another in the main script—both labeling species via SVG rectangles and text. The visualization adapts to the full browser window size.
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.