/** @jsxImportSource react */ import { Instance } from "../ui/Instance"; import { BooleanProp, NumberProp, RecordsProp, StringProp } from "../ui/Prop"; import { RenderingContext } from "../ui/RenderingContext"; import { Widget, WidgetConfig, WidgetStyleConfig } from "../ui/Widget"; import { Selection } from "../ui/selection/Selection"; import type { ChartRenderingContext } from "./Chart"; export interface ScatterGraphConfig extends WidgetConfig, WidgetStyleConfig { /** Data for the graph. Each entry should be an object with at least two properties * whose names should match the `xField` and `yField` values. */ data?: RecordsProp; /** Size of the scatter points. */ size?: NumberProp; /** Shape of the scatter points. Default is `circle`. */ shape?: StringProp; /** Index of a color from the standard palette of colors. 0-15. */ colorIndex?: NumberProp; /** Used to automatically assign a color based on the `name` and the contextual `ColorMap` widget. */ colorMap?: StringProp; /** Name used to resolve the color. If not provided, `name` is used instead. */ colorName?: StringProp; /** Name of the item as it will appear in the legend. */ name?: StringProp; /** Used to indicate if an item is active or not. Inactive items are shown only in the legend. */ active?: BooleanProp; /** Name of the horizontal axis. Default value is `x`. */ xAxis?: string; /** Name of the vertical axis. Default value is `y`. */ yAxis?: string; /** Name of the property which holds the x value. Default value is `x`. */ xField?: string; /** Name of the property which holds the y value. Default value is `y`. */ yField?: string; /** Name of the property which holds the size value. */ sizeField?: string | false; /** Name of the legend to be used. Default is `legend`. Set to `false` to hide the legend entry. */ legend?: string | false; /** Action to perform on legend item click. Default is `auto`. */ legendAction?: string; /** Selection configuration. */ selection?: any; } export interface ScatterGraphInstance extends Instance { xAxis: any; yAxis: any; colorMap: any; } export declare class ScatterGraph extends Widget { baseClass: string; xAxis: string; yAxis: string; xField: string; yField: string; sizeField: string | false; size: number; shape: string; legend: string | false; legendAction: string; selection: Selection; data: any; constructor(config: ScatterGraphConfig); init(): void; declareData(...args: any[]): void; prepareData(context: RenderingContext, instance: ScatterGraphInstance): void; explore(context: ChartRenderingContext, instance: ScatterGraphInstance): void; prepare(context: ChartRenderingContext, instance: ScatterGraphInstance): void; onLegendClick(e: MouseEvent, instance: ScatterGraphInstance): void; render(context: RenderingContext, instance: ScatterGraphInstance, key: string): React.ReactNode; renderData(context: RenderingContext, instance: ScatterGraphInstance): React.ReactNode; handleItemClick(e: React.MouseEvent, { data, store }: ScatterGraphInstance, index: number): void; } //# sourceMappingURL=ScatterGraph.d.ts.map