Skip to content

Scatter

Examples

Sessions and conversions by month
DateSessionsConversions
2023-01-01140125
2023-02-01180127
2023-03-01217122
2023-04-01248110
2023-05-0123196
2023-06-0124447
2023-07-0124736
2023-08-0124232
2023-09-0118936
2023-10-0117148
2023-11-0115234
2023-12-019560
2024-01-018388
2024-02-0179116
2024-03-0184140
2024-04-0158122
2024-05-0182131
2024-06-01114131
2024-07-01152124
2024-08-01153111
2024-09-0119361
2024-10-0123048
2024-11-0122039
2024-12-0124137

API Reference

Types come from the public API. A dash indicates no default is documented here.

ScatterChart props

Public source
PropTypeDefaultDescription
keyKeepAliveKey<K, Ends> | undefined''The child's identity among its parent's children of one component, or a kept child's among its author's. The empty string by default.
onEmit((events: never) => NoInfer<Msg> | undefined) | undefined—Handle the child's events with a callback, or supply one handler per tag for tagged events. Return a parent message to dispatch it, or `undefined` to ignore the event.
props.datareadonly { readonly [x: string]: number; readonly date: number; }[]Required
props.idstringRequired
props.ariaLabelstringRequired
props.series
Show type
readonly { readonly dataKey: string; readonly label?: string; readonly animate?: boolean; readonly fill?: string; readonly stroke?: string; readonly radius?: number; readonly outlineColor?: string; readonly outlineWidth?: number; readonly strokeWidth?: number; readonly ringGap?: number; readonly yAxisId?: string; readonly yGradient?: boolean | { readonly from?: string; readonly to?: string; }; readonly enterBlur?: number; }[]
Required
props.animationDurationnumber1100
props.aspectRationumber—
props.gridboolean—
props.heightnumber—
props.margin
Show type
{ readonly bottom?: number; readonly left?: number; readonly right?: number; readonly top?: number; }
—
props.widthnumber—
props.tooltipboolean—
props.responsiveboolean—
props.yAxisboolean—