Area Chart
Filled areas with gradient, hatch, dotted, stacked, and dashed-stroke variants.
variant='gradient'
@spectrumui/area-chart
- Desktop
- Mobile
Login to view codeCreate a free account to access component source code
Login to view codeCreate a free account to access component source code
Login to view codeCreate a free account to access component source code
variant='hatched'
- Desktop
- Mobile
Login to view codeCreate a free account to access component source code
Login to view codeCreate a free account to access component source code
Login to view codeCreate a free account to access component source code
variant='dotted'
- Desktop
- Mobile
Login to view codeCreate a free account to access component source code
Login to view codeCreate a free account to access component source code
Login to view codeCreate a free account to access component source code
variant='solid'
- Desktop
- Mobile
Login to view codeCreate a free account to access component source code
Login to view codeCreate a free account to access component source code
Login to view codeCreate a free account to access component source code
stackType='stacked'
- Desktop
- Mobile
Login to view codeCreate a free account to access component source code
Login to view codeCreate a free account to access component source code
Login to view codeCreate a free account to access component source code
curveType='bump'
- Desktop
- Mobile
Login to view codeCreate a free account to access component source code
Login to view codeCreate a free account to access component source code
Login to view codeCreate a free account to access component source code
strokeVariant='animated-dashed'
- Desktop
- Mobile
Login to view codeCreate a free account to access component source code
Login to view codeCreate a free account to access component source code
Login to view codeCreate a free account to access component source code
Manual installation
Prefer to copy by hand? Open the Code tab on any example above and switch to the file you need — every source file is there, not just the demo. Drop them in your project like this:
chart-kit.tsxcomponents/spectrumui/charts/chart-kit.tsxarea-chart.tsxcomponents/spectrumui/charts/area-chart.tsx
Then install its dependencies: npm i recharts framer-motion
Usage
import { AreaChart } from '@/components/spectrumui/charts/area-chart';
<AreaChart data={data} variant="gradient" />