Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

iris-pie-chart

Public visualization

Viewing a saved revision (read-only)

589cbccbfefc4ed280d1bfb3c114c558

iris-pie-chart

0 stars4🌍 Public
Ssohith kampalli
Last edited Mar 24, 2025
Created on Mar 24, 2025

This pie chart visualizes the distribution of iris species across the dataset, showing counts for Iris-setosa, Iris-versicolor, and Iris-virginica. It uses d3.pie and d3.arc to generate slices, d3.rollup to aggregate counts, and a d3.scaleOrdinal for color encoding. The chart is rendered as SVG with labels positioned via arc.centroid, accompanied by a separate SVG legend. Data is loaded asynchronously from a CSV file using d3.csv, with all elements cleared on reload.

AI-generated description