Get StartedComponentsStylingThemingMath & Science
MCP

Charts

Scatter Chart

Relationships between two numeric variables.

Markdown

Import

tsx
import { ScatterChart } from "@indoku/ui"

Examples

Basic

02468100510152025

Grouped data

One series per group.

0246810051015202530

Trend lines

trendLine fits a least-squares line per group.

0246810051015202530

Dot connectors

connect joins the points in order.

0123456051015

Props

ScatterChart

PropTypeDefaultDescription
seriesScatterSeries[]–Groups of { x, y } points.
trendLinebooleanfalseLinear regression per group.
connectbooleanfalseLine through points in order.
dotSizenumber4Dot radius.

* required. Style props and HTML attributes are accepted as well.

Created by @indokudev