pie chart for percentage with transition, gradient color and mouse over *changed*
✓ Published0🌍 Public
SSchmittYannic
Last edited Aug 11, 2020
Created on Aug 10, 2020
A donut chart displays a single percentage value with a smooth animated transition, using a gradient fill that shifts from red to green as the percentage increases. The chart includes a mouseover effect that highlights the arc and bolds the percentage text. Built with React and D3 v5, the visualization uses SVG paths, `d3.arc` for the donut shape, `transition.attrTween` for the animation, and a linear gradient defined in the SVG `defs` section. The percentage updates are driven by `d3.interval`, with the input data hardcoded as zero.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.
MIT Licensed