Scatter
Examples
API Reference
Types come from the public API. A dash indicates no default is documented here.
ScatterChart props
Public source| Prop | Type | Default | Description |
|---|---|---|---|
key | KeepAliveKey<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.data | readonly { readonly [x: string]: number; readonly date: number; }[] | Required | |
props.id | string | Required | |
props.ariaLabel | string | Required | |
props.series | Show typereadonly { 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.animationDuration | number | 1100 | |
props.aspectRatio | number | — | |
props.grid | boolean | — | |
props.height | number | — | |
props.margin | Show type{ readonly bottom?: number; readonly left?: number; readonly right?: number; readonly top?: number; } | — | |
props.width | number | — | |
props.tooltip | boolean | — | |
props.responsive | boolean | — | |
props.yAxis | boolean | — |