About
A scatterplot chart with a fitted linear regression trend line, useful for visualizing correlation between two numeric variables in data dashboards.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Linear Regression Chart to your project and fits it to your theme.
Code
How Linear Regression Chart is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import LinearRegressionChart from "@/components/ui/tanstack-charts-linear-regression";
export default function LinearRegressionChartDemo() {
return (
<div className="flex w-full items-center justify-center p-4">
<LinearRegressionChart />
</div>
);
}








