🌍 Public
Viewing a saved revision (read-only)
37d34ccf2c8b4904bc1b03afc7f91026
ICE-7 Pie Chart
This example shows the distribution of three iris species in the classic Iris Dataset as a pie chart. It imports data from a CSV file, counts occurrences of each species, and renders the result using the reusable `PieChart` function. The chart uses D3’s `pie` layout and `arc` generator for SVG paths, with an ordinal color scale mapping species to red, green, and blue. A custom legend is appended with `svg.append`, and the page uses the Share Tech font.
AI-generated descriptionA reusable scatter plot inspired by Towards Reusable Charts.
Shows the Iris Dataset.