About
A line chart card that plots a 7-day rolling moving average of daily high and low temperatures to smooth out short-term volatility.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Moving Average Line to your project and fits it to your theme.
Code
How Moving Average Line is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { MovingAverageLine } from "@/components/ui/tanstack-charts-moving-average-line";
export default function MovingAverageLineDemo() {
return (
<div className="flex w-full items-center justify-center p-8">
<MovingAverageLine />
</div>
);
}
















