Back to Components

Scatter Plot

Charts

Interactive scatter plots for correlation analysis and distribution patterns with automatic correlation calculation and interactive data points.

Installation

$npx linspo-ui add scatter-plot
Dependencies: lucide-react

Correlation Analysis

12 data points

0.61

Correlation

Y Axis
X Axis

12

Points

52

Avg X

56

Avg Y

0.61

R Value

Props

PropTypeDefaultDescription
dataDataPoint[]Array of data points with x, y coordinates and optional label.
metricstring"Correlation Analysis"Label for the metric being displayed.
xLabelstring"X Axis"Label for the x-axis.
yLabelstring"Y Axis"Label for the y-axis.
classNamestringAdditional CSS classes to apply.