Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

pie chart for percentage with transition, gradient color and mouse over

Public visualization

Viewing a saved revision (read-only)

4abaeb47e1f9475286bdafd603e21f95

pie chart for percentage with transition, gradient color and mouse over

0 stars1๐ŸŒ Public
SSchmittYannic
Last edited Aug 10, 2020
Created on Aug 9, 2020
Forked from Hello VizHub

A donut chart visualizes a percentage value with a smooth animated transition, shifting the arc from zero to the given input over 750 milliseconds. The chart uses gradient colors that change based on the percentage range, from red for low values to green for high values. Hovering over the arc highlights it with a black stroke. The implementation uses D3 v5 with SVG rendering, leveraging `d3.arc`, `d3.interval`, and `transition.attrTween` for animation, alongside a linear gradient definition for color transitions.

AI-generated description

A bare minimum HTML page.

See also React Starter.