Skip to main content
100%

Viz - pie - createFolded

✓ Published0🌍 Public
NNPashaP
Last edited Jan 14, 2018
Created on Jan 14, 2018

A folded pie chart displays six data values as adjacent sectors that initially compress into an accordion-like stack. After a one-second delay, the chart unfolds into a full circular pie. Built with D3 v4 and the Viz.js library, the example uses the `viz.pie()` factory method, configures its data array, and applies the `createFolded()` transform. The SVG rendering is contained in a `<g>` element, which is selected and populated via `d3.select("g").call(pie)`, with the `pie.unfold()` animation triggered by a JavaScript timeout.

AI-generated description
gpl-3.0 Licensed

Similar vizzes