Scatter + Regression

Scatter plot with trend line, R-squared value, and confidence interval overlay.

Height vs Weight
12345678910150160170180190

Code

example.tsx
import { ScatterChart } from "@chartts/react"

<ScatterChart
  data={measurements}
  x="height"
  y="weight"
  trendLine
  className="h-96"
/>