About
A dual-color area chart that visualizes how a value (like an asset's price) deviates above or below a moving average, shading premium and discount periods differently.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Difference Chart to your project and fits it to your theme.
Code
How Difference Chart is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import DifferenceChart from "@/components/ui/tanstack-charts-difference-chart";
export default function DifferenceChartDemo() {
return (
<div className="flex w-full items-center justify-center p-8">
<DifferenceChart />
</div>
);
}
















