iris-pie-chart
✓ Published4🌍 Public
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 descriptionMIT Licensed