Streamgraph
Stacked layers flowing around a centre line to show a changing mix over time; hover a stream.
| Year | Bollywood | Indie | Hip-hop | Lo-fi | Devotional | Podcasts |
|---|---|---|---|---|---|---|
| 2016 | 9 | 1 | 2 | 0 | 3 | 1 |
| 2017 | 9 | 2 | 2 | 1 | 3 | 1 |
| 2018 | 10 | 2 | 3 | 1 | 3 | 2 |
| 2019 | 9 | 3 | 4 | 2 | 3 | 3 |
| 2020 | 8 | 5 | 5 | 5 | 4 | 4 |
| 2021 | 8 | 6 | 6 | 6 | 4 | 5 |
| 2022 | 7 | 7 | 6 | 5 | 3 | 6 |
| 2023 | 7 | 7 | 7 | 4 | 3 | 7 |
| 2024 | 7 | 8 | 7 | 4 | 3 | 8 |
| 2025 | 6 | 8 | 7 | 3 | 3 | 9 |
Edit with AIPro
Describe a change to Streamgraph and get the updated code. The live preview above stays as the original.
Quality report
Kinetiq VerifiedLoads cleanly
No errors on phone and desktop screens.
Fits a phone screen
No sideways scrolling at 375 px wide.
No serious accessibility problems
Passed the axe-core WCAG 2.1 A/AA check.
- Size (gzipped)
- 2.1 KB
- Extra packages
- motion
- Reduced motion
- Respected
Tested automatically in Chrome 158.0.8127.36 with axe-core 4.14.1. Automated tools catch only part of all accessibility problems, so treat this as a solid minimum, not a full audit.
Installation
One command
Adds the file to components/ui/streamgraph.tsx and installs motion for you.
Run login once. It needs a free account, because the code is for signed-in users only. Get your token.
Or do it by hand
Install the dependencies
$ npm i motion lucide-reactSign in, open the Code tab above and copy it into
components/ui/streamgraph.tsxUse it
The file exports the component and a
Demoshowing typical usage. Import whichever you need.