Skip to main content
100%

iris-pie-chart

✓ Published4🌍 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
MIT Licensed

Similar vizzes