Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Pie chart

Public visualization

Pie chart

0 stars1🌍 Public
Ssathishkanna11
Last edited Apr 28, 2020
Created on Apr 28, 2020
Forked from Pie chart

A pie chart displays the proportional breakdown of four hardcoded values, with a color legend assigned via a radio button group offering apples or oranges datasets. The visualization renders as an SVG donut using D3 v5's `d3.pie()` and `d3.arc()` generators, with an ordinal color scale mapping categories to distinct hues. The chart draws all arcs at once from a fixed data array, and changing the dataset radio button does not trigger a re-render, as only the initial render function is called.

AI-generated description

Making a pie chart.

Comments

Sign in to join the discussion.

MIT Licensed