Skip to main content
100%

Mobile Breathing Visualization

✓ Published0🌍 Public
OOghenemaro Anuyah
Last edited Apr 7, 2021
Created on Mar 30, 2021
Forked from HTML Starter

This interactive visualization presents a guided breathing exercise using a segmented donut chart built with D3.js and SVG. The four colored arcs represent the phases of a breathing cycle: inhale, hold, exhale, and another hold, each distinguished by green, yellow, and red fills. An animated gray overlay arc, drawn with the D3 arc generator, progressively obscures the segments according to a timed sequence, while a text descriptor updates to label the current phase. The visualization resets and starts when the user clicks or presses the mouse down on the SVG container.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes