@vectara/vectara-ui
Version:
Vectara's design system, codified as a React and Sass component library
24 lines (23 loc) • 793 B
TypeScript
import { PatchColor } from "../patch/VuiPatch";
export type BarChartSeries = {
dataKey: string;
name?: string;
color?: PatchColor;
};
type Props = {
data: Array<Record<string, string | number>>;
categoryKey: string;
series: BarChartSeries[];
orientation?: "columns" | "bars";
stacked?: boolean;
height?: number;
showLegend?: boolean;
showGrid?: boolean;
showTooltip?: boolean;
syncId?: string;
syncMethod?: "index" | "value";
formatValue?: (value: number) => string;
"data-testid"?: string;
};
export declare const VuiBarChart: ({ data, categoryKey, series, orientation, stacked, height, showLegend, showGrid, showTooltip, syncId, syncMethod, formatValue, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
export {};