Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Pie chart

Public visualization

Viewing a saved revision (read-only)

7cda48d501f447bfa3b525a40e9d273c

Pie chart

0 stars1🌍 Public
GGangumalla Ruchitha Reddy
Last edited Apr 28, 2024
Created on Apr 28, 2024
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.