/** @jsxImportSource react */ import { StyledContainerBase, StyledContainerConfig } from "../ui/Container"; import { TooltipParentInstance } from "../widgets/overlay/tooltip-ops"; import { Selection } from "../ui/selection/Selection"; import { Prop, BooleanProp, NumberProp, StringProp } from "../ui/Prop"; import { Instance } from "../ui/Instance"; import { RenderingContext } from "../ui/RenderingContext"; import { Rect } from "../svg/util/Rect"; import type { ChartRenderingContext } from "./Chart"; export interface ColumnBarBaseConfig extends StyledContainerConfig { /** The `x` value binding or expression. */ x?: Prop; /** The `y` value binding or expression. */ y?: Prop; disabled?: BooleanProp; /** 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; /** Indicate that columns should be stacked on top of the other columns. Default value is `false`. */ stacked?: BooleanProp; /** Name of the stack. If multiple stacks are used, each should have a unique name. Default value is `stack`. */ stack?: StringProp; /** Of center offset of the column. Use this in combination with `size` to align multiple series on the same chart. */ offset?: NumberProp; /** Border radius of the column/bar. */ borderRadius?: NumberProp; /** * Name of the horizontal axis. The value should match one of the horizontal axes set * in the `axes` configuration of the parent `Chart` component. Default value is `x`. */ xAxis?: string; /** * Name of the vertical axis. The value should match one of the vertical axes set * in the `axes` configuration if the parent `Chart` component. Default value is `y`. */ yAxis?: string; /** Name of the legend to be used. Default is `legend`. Set to `false` to hide the legend entry. */ legend?: string | false; legendAction?: string; legendShape?: string; /** A value used to identify the group of components participating in hover effect synchronization. */ hoverChannel?: string; /** A value used to uniquely identify the record within the hover sync group. */ hoverId?: StringProp | NumberProp; /** Hide the bar/column rect. Used for stacked series where only top bar should be visible. */ hidden?: BooleanProp; selection?: any; tooltip?: any; } export interface ColumnBarBaseInstance extends Instance, TooltipParentInstance { axes: Record; xAxis: any; yAxis: any; hoverSync: any; colorMap: any; bounds: Rect; } export declare class ColumnBarBase extends StyledContainerBase { baseClass: string; xAxis: string; yAxis: string; offset: number; legend: string | false; legendAction: string; active: boolean; stacked: boolean; stack: string; legendShape: string; hoverChannel: string; borderRadius: number; hidden: boolean; selection: Selection; tooltip: any; constructor(config: ColumnBarBaseConfig); init(): void; declareData(...args: any[]): any; prepareData(context: ChartRenderingContext, instance: ColumnBarBaseInstance): void; checkValid(data: any): boolean; prepare(context: ChartRenderingContext, instance: ColumnBarBaseInstance): void; prepareCleanup(context: ChartRenderingContext, instance: ColumnBarBaseInstance): void; onLegendClick(e: MouseEvent, instance: ColumnBarBaseInstance): void; calculateRect(instance: ColumnBarBaseInstance): Rect; render(context: RenderingContext, instance: ColumnBarBaseInstance, key: string): React.ReactNode; handleClick(e: MouseEvent | React.MouseEvent, instance: ColumnBarBaseInstance): void; } //# sourceMappingURL=ColumnBarBase.d.ts.map