fresh block
✓ Published0🌍 Public
PPragyagarg
Last edited Dec 13, 2018
Created on Dec 13, 2018
Two donut charts display randomly generated sales data for five product tiers, each slice filled with a radial gradient that darkens toward the edge for a subtle 3D effect. A "Change Data" button triggers animated transitions using `gradPie.transition`, which relies on D3 v3’s `transition.attrTween` and an interpolated arc path (`d3.svg.arc`). The custom `gradientPie.js` library builds gradients via SVG `radialGradient` elements and updates both charts simultaneously in 750 milliseconds, demonstrating reusable pie-chart logic with smooth data updates.
AI-generated descriptionBuilt with blockbuilder.org
mit Licensed