Skip to main content
100%

pieChart

✓ Published3🌍 Public
SSchmittYannic
Last edited Aug 26, 2020
Created on Aug 26, 2020
Forked from neues barchart v3

This example shows a pie chart for absolute frequencies of categorical data, with an animated sweep-in effect for each slice and a dropdown menu to switch between the "note" and "student" columns. It uses React with D3 v5, rendering SVG paths via `d3.pie()` and `d3.arc()`. The animation is driven by `transition.attrTween` with `d3.interpolate` for angle changes. A button-styled tooltip appears on hover, and data is aggregated with `d3.nest()` before being passed to the chart.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes