/** @jsxImportSource react */ import { Widget, WidgetConfig } from "../ui/Widget"; import { Selection, SimpleSelection } from "../ui/selection/Selection"; import type { KeySelection } from "../ui/selection/KeySelection"; import type { PropertySelection } from "../ui/selection/PropertySelection"; import { Instance } from "../ui/Instance"; import { CxChild } from "../ui/RenderingContext"; import { Prop, StyleProp, DataRecord } from "../ui/Prop"; import { Create } from "../util/Component"; import type { ChartRenderingContext } from "./Chart"; export interface BubbleGraphConfig extends WidgetConfig { /** Data array for the bubbles. */ data?: Prop; /** Default bubble radius. Default is 10. */ bubbleRadius?: number; /** Style object applied to all bubbles. */ bubbleStyle?: StyleProp; /** Name of the x-axis. Default is 'x'. */ xAxis?: string; /** Name of the y-axis. Default is 'y'. */ yAxis?: string; /** Name of the field in data objects that contains x values. Default is 'x'. */ xField?: string; /** Name of the field in data objects that contains y values. Default is 'y'. */ yField?: string; /** Name of the field in data objects that contains radius values. Default is 'r'. */ rField?: string; /** Selection configuration. */ selection?: Create | Create | Create | Create; } export interface BubbleGraphInstance extends Instance { axes: { [key: string]: any; }; } export declare class BubbleGraph extends Widget { baseClass: string; xAxis: string; yAxis: string; xField: string; yField: string; rField: string; bubbleRadius: number; selection: Selection; data?: Prop; constructor(config?: BubbleGraphConfig); declareData(...args: any[]): void; init(): void; explore(context: ChartRenderingContext, instance: BubbleGraphInstance): void; prepare(context: ChartRenderingContext, instance: BubbleGraphInstance): void; render(context: ChartRenderingContext, instance: BubbleGraphInstance, key: string): CxChild; renderData(context: ChartRenderingContext, instance: BubbleGraphInstance): any; onBubbleClick(e: React.MouseEvent, instance: BubbleGraphInstance, index: number): void; } //# sourceMappingURL=BubbleGraph.d.ts.map