Composed Chart
Bars, lines, and areas on one plot — mix fills, dashes, and glow per series.
Basic chart
@spectrumui/composed-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
barVariant='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
barVariant='duotone'
- 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
lineStroke='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
glowing
- 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.tsxcomposed-chart.tsxcomponents/spectrumui/charts/composed-chart.tsx
Then install its dependencies: npm i recharts framer-motion
Usage
import { ComposedChart } from '@/components/spectrumui/charts/composed-chart';
<ComposedChart data={data} />