import { TimeType, CategoryType, UnitRange } from '../types'; type BarchartDisplayOptions = { noBackground?: boolean; showHorizontalGridLines?: boolean; noYAxisLine?: boolean; noTickLine?: boolean; noHeader?: boolean; }; export type Point = { key: string | number; values: { label: string; value: number; }[]; }; export type BarchartBars = readonly { readonly label: string; /** * When using a time type, the data should be an array of [Date, value] * so use Date instead of timestamp for transformation data in format fn */ readonly data: readonly (readonly [string | Date, number | string])[]; }[]; export type BarchartTooltipFn = (currentPoint: { category: string | number; values: { label: T[number]['label']; value: number; isHovered: boolean; }[]; }) => React.ReactNode; export type BarchartSortFn = (pointA: Record & { category: string | number; }, pointB: Record & { category: string | number; }) => 1 | -1 | 0; export type BarchartProps = { type: CategoryType | TimeType; title: string; bars?: T; tooltip?: BarchartTooltipFn; defaultSort?: BarchartSortFn; unitRange?: UnitRange; helpTooltip?: React.ReactNode; stacked?: boolean; /** * Sort the bars by default or by legend order * legend will sort the bars by the order of the colorSet property of the ChartLegendWrapper component * default will sort the bars by average values in descending order (biggest values will be at bottom) * @default 'default' */ stackedBarSort?: 'default' | 'legend'; secondaryTitle?: string; rightTitle?: React.ReactNode; height?: number; isLoading?: boolean; isError?: boolean; /** * Named display preset that sets a group of visual defaults at once. * * - `'default'` — opaque background, no grid lines, Y-axis line visible, tick marks visible. * - `'modern'` — transparent background, horizontal grid lines, no Y-axis line, no tick marks. * * Individual values can be overridden with `displayOptions`. * Defaults to `'default'` when omitted. */ displayPreset?: 'default' | 'modern'; /** * Fine-grained overrides applied on top of the active `displayPreset`. * Only the properties you specify are overridden; the rest come from the preset. */ displayOptions?: BarchartDisplayOptions; }; export declare const Barchart: (props: BarchartProps) => import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=Barchart.d.ts.map