Skip to main content
100%

ICE-7 Pie Chart

✓ Published1🌍 Public
DDan Waters
Last edited Mar 29, 2022
Created on Mar 29, 2022

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 description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes