Stacked Area Chart
Smooth stacked areas with a hover readout of every layer and a legend that hides layers and restacks.
| Month | Website | Mobile app | Marketplace | Wholesale |
|---|---|---|---|---|
| Jan | ₹12L | ₹6L | ₹8L | ₹5L |
| Feb | ₹14L | ₹7L | ₹8L | ₹6L |
| Mar | ₹13L | ₹9L | ₹9L | ₹5L |
| Apr | ₹17L | ₹10L | ₹9L | ₹7L |
| May | ₹19L | ₹12L | ₹10L | ₹6L |
| Jun | ₹22L | ₹13L | ₹9L | ₹8L |
| Jul | ₹21L | ₹16L | ₹11L | ₹7L |
| Aug | ₹24L | ₹18L | ₹12L | ₹8L |
| Sep | ₹27L | ₹19L | ₹12L | ₹9L |
| Oct | ₹29L | ₹23L | ₹13L | ₹8L |
| Nov | ₹34L | ₹26L | ₹15L | ₹10L |
| Dec | ₹38L | ₹31L | ₹14L | ₹11L |
Edit with AIPro
Describe a change to Stacked Area Chart 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.9 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/stacked-area-chart.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/stacked-area-chart.tsxUse it
The file exports the component and a
Demoshowing typical usage. Import whichever you need.