Skip to content
LoidoltTheme 0.11.1
Svelte 5

Component

ScatterChart

Points on two value axes, with optional least-squares trend lines.

import { ScatterChart } from '@loidolt/theme-charts';

Example

Cut time against path length

Scatter chart of 13 points in 2 series. Birch 3 mm: 7 points, y rising with x; Acrylic 3 mm: 6 points, y rising with x.

Notes

  • A trend line is skipped for a series whose x values are all equal, where the fit is undefined.

Props

Generated from the component source, so it cannot drift from the implementation.

ScatterChart props
PropTypeDefaultNotes
data required ScatterSeries[]—One or more series of [x, y] points.
tableLabels { seriesLabel?: string; xLabel?: string; yLabel?: string }{}Headings of the data table columns.

Plus the attributes of Omit<ComponentProps<typeof Chart>, 'option' | 'table' | 'extensions'>andScatterOptions, forwarded to the root element.