CodingLaboratory
Lab Commands
Enter The Lab

Component Lab / application-data / gradient-sankey-mini

Stable release
Back to category

Open experiment

Gradient Sankey mini

Shows how one incoming total branches through three outcomes using proportional flow bands. Outcome buttons highlight a path and expose its amount and percentage in text. Visualizes branching quantity flow rather than a series over time.

Lab tested Responsive Dark mode Interactive
Version
1.0.0
Updated
2026-08-02
Dependencies
Zero
Live canvasInstant token updates
Source filesEditable and export-ready
<article class="cmp-gradient-sankey-mini cmp-atlas" data-state="idle" data-variant="3">
  <header>
    <span>Flow diagrams</span
    ><button type="button" data-primary aria-pressed="false">Live view</button>
  </header>
  <div class="cmp-atlas__metric"><b>42%</b><span data-output>+12.8% this cycle</span></div>
  <div class="cmp-atlas__sankey">
    <b>12k</b><i></i><i></i><i></i><span>6.8k</span><span>3.1k</span><span>2.1k</span>
  </div>
  <div class="cmp-atlas__choices">
    <button type="button" data-choice="0" aria-pressed="true">Now</button
    ><button type="button" data-choice="1" aria-pressed="false">7 days</button
    ><button type="button" data-choice="2" aria-pressed="false">30 days</button>
  </div>
  <p data-status aria-live="polite">Current data view selected</p>
</article>
No runtime reactions detected Open in Editor

Validated in the lab

Experiment report

  • Schema and source files passed
  • Responsive test passed
  • Keyboard test passed
  • No console errors

Component ingredients

Dependencies
None
Browser support
Current Chrome, Current Edge, Current Firefox, Current Safari
Version
1.0.0
Last tested
2026-08-02

Accessibility notes

  • Every interactive target is a labelled native control with a visible focus treatment.
  • State changes are communicated through a polite text status and never by color alone.
  • The contained visual effects stop when the user requests reduced motion.

License: MIT License for open-source use, modification, and distribution.