import { Granularity } from '@embeddable.com/core'; import { Inputs } from '@embeddable.com/react'; import { ThemeClientContext } from '../../../../theme/theme.types'; import { BarChartStackedProOptionsClickArg } from '../bars.types'; declare const meta: { readonly name: "BarChartStackedHorizontalPro"; readonly label: "Bar Chart - Stacked Horizontal"; readonly description: "Same as BarChartStackedPro but with horizontal bars. Pick when category labels are long or numerous."; readonly category: "Bar Charts"; readonly inputs: [{ readonly name: "dataset"; readonly type: "dataset"; readonly label: "Dataset"; readonly required: true; readonly category: "Component Data"; }, { readonly name: "measure"; readonly type: "measure"; readonly label: "Measure"; readonly config: { readonly dataset: "dataset"; }; readonly required: true; readonly category: "Component Data"; readonly inputs: any[]; }, { readonly name: "yAxis"; readonly label: "Y-axis"; readonly type: "dimension"; readonly config: { readonly dataset: "dataset"; }; readonly required: true; readonly category: "Component Data"; readonly inputs: any[]; }, { readonly name: "groupBy"; readonly label: "Group by"; readonly type: "dimension"; readonly config: { readonly dataset: "dataset"; }; readonly required: true; readonly category: "Component Data"; readonly inputs: any[]; }, { readonly name: "title"; readonly type: "string"; readonly label: "Title"; readonly category: "Component Header"; }, { readonly name: "description"; readonly type: "string"; readonly label: "Description"; readonly category: "Component Header"; }, { readonly name: "tooltip"; readonly type: "string"; readonly label: "Tooltip"; readonly category: "Component Header"; }, { readonly name: "maxResults"; readonly type: "number"; readonly label: "Max results"; readonly category: "Component Settings"; readonly defaultValue: 1000; }, { readonly name: "showLegend"; readonly type: "boolean"; readonly label: "Show legend"; readonly defaultValue: true; readonly category: "Component Settings"; }, { readonly name: "showTooltips"; readonly type: "boolean"; readonly label: "Show tooltips"; readonly defaultValue: true; readonly category: "Component Settings"; }, { readonly defaultValue: false; readonly name: "showValueLabels"; readonly type: "boolean"; readonly label: "Show value labels"; readonly category: "Component Settings"; }, { readonly name: "showLogarithmicScale"; readonly type: "boolean"; readonly label: "Show logarithmic scale"; readonly defaultValue: false; readonly category: "Component Settings"; }, { readonly name: "sortDirectionTopYAxis"; readonly label: "Sort by y-axis total"; readonly type: import("@embeddable.com/core").EmbeddableType; readonly category: "Component Settings"; }, { readonly name: "limitTopYAxis"; readonly type: "number"; readonly label: "Limit top y-axis"; readonly description: "Load only the top or bottom categories, based on group totals"; readonly category: "Component Settings"; }, { readonly name: "xAxisLabel"; readonly type: "string"; readonly label: "X-axis Label"; readonly category: "Axes Settings"; }, { readonly name: "yAxisLabel"; readonly type: "string"; readonly label: "Y-axis label"; readonly category: "Axes Settings"; }, { readonly name: "reverseYAxis"; readonly type: "boolean"; readonly label: "Reverse y-axis"; readonly defaultValue: false; readonly category: "Axes Settings"; }, { readonly name: "xAxisRangeMin"; readonly type: "number"; readonly label: "X-axis range min"; readonly category: "Axes Settings"; }, { readonly name: "xAxisRangeMax"; readonly type: "number"; readonly label: "X-axis range max"; readonly category: "Axes Settings"; }, { readonly name: "showTotalLabels"; readonly type: "boolean"; readonly label: "Show total labels"; readonly defaultValue: false; readonly category: "Component Settings"; }, { readonly name: "menuOptions"; readonly type: import("@embeddable.com/core").EmbeddableType; readonly label: "Menu options"; readonly array: true; readonly defaultValue: readonly ["csv", "xlsx", "png"]; readonly category: "Component Settings"; }]; readonly events: [{ readonly name: "onBarClicked"; readonly label: "A bar is clicked"; readonly properties: [{ readonly name: "axisDimensionValue"; readonly label: "Clicked axis dimension value"; readonly type: "string"; }, { readonly name: "axisDimensionTimeRange"; readonly label: "Clicked axis dimension time range"; readonly type: "timeRange"; }, { readonly name: "groupingDimensionValue"; readonly label: "Clicked grouping dimension value"; readonly type: "string"; }, { readonly name: "groupingDimensionTimeRange"; readonly label: "Clicked grouping dimension time range"; readonly type: "timeRange"; }]; }]; }; export type BarChartStackedHorizontalProState = { granularity?: Granularity; axisOrder?: string[]; axisOrderCacheKey?: string; }; export declare const barChartStackedHorizontalPro: { readonly Component: (props: import("./index").BarChartStackedHorizontalProProps) => import("react").JSX.Element; readonly meta: { readonly name: "BarChartStackedHorizontalPro"; readonly label: "Bar Chart - Stacked Horizontal"; readonly description: "Same as BarChartStackedPro but with horizontal bars. Pick when category labels are long or numerous."; readonly category: "Bar Charts"; readonly inputs: [{ readonly name: "dataset"; readonly type: "dataset"; readonly label: "Dataset"; readonly required: true; readonly category: "Component Data"; }, { readonly name: "measure"; readonly type: "measure"; readonly label: "Measure"; readonly config: { readonly dataset: "dataset"; }; readonly required: true; readonly category: "Component Data"; readonly inputs: any[]; }, { readonly name: "yAxis"; readonly label: "Y-axis"; readonly type: "dimension"; readonly config: { readonly dataset: "dataset"; }; readonly required: true; readonly category: "Component Data"; readonly inputs: any[]; }, { readonly name: "groupBy"; readonly label: "Group by"; readonly type: "dimension"; readonly config: { readonly dataset: "dataset"; }; readonly required: true; readonly category: "Component Data"; readonly inputs: any[]; }, { readonly name: "title"; readonly type: "string"; readonly label: "Title"; readonly category: "Component Header"; }, { readonly name: "description"; readonly type: "string"; readonly label: "Description"; readonly category: "Component Header"; }, { readonly name: "tooltip"; readonly type: "string"; readonly label: "Tooltip"; readonly category: "Component Header"; }, { readonly name: "maxResults"; readonly type: "number"; readonly label: "Max results"; readonly category: "Component Settings"; readonly defaultValue: 1000; }, { readonly name: "showLegend"; readonly type: "boolean"; readonly label: "Show legend"; readonly defaultValue: true; readonly category: "Component Settings"; }, { readonly name: "showTooltips"; readonly type: "boolean"; readonly label: "Show tooltips"; readonly defaultValue: true; readonly category: "Component Settings"; }, { readonly defaultValue: false; readonly name: "showValueLabels"; readonly type: "boolean"; readonly label: "Show value labels"; readonly category: "Component Settings"; }, { readonly name: "showLogarithmicScale"; readonly type: "boolean"; readonly label: "Show logarithmic scale"; readonly defaultValue: false; readonly category: "Component Settings"; }, { readonly name: "sortDirectionTopYAxis"; readonly label: "Sort by y-axis total"; readonly type: import("@embeddable.com/core").EmbeddableType; readonly category: "Component Settings"; }, { readonly name: "limitTopYAxis"; readonly type: "number"; readonly label: "Limit top y-axis"; readonly description: "Load only the top or bottom categories, based on group totals"; readonly category: "Component Settings"; }, { readonly name: "xAxisLabel"; readonly type: "string"; readonly label: "X-axis Label"; readonly category: "Axes Settings"; }, { readonly name: "yAxisLabel"; readonly type: "string"; readonly label: "Y-axis label"; readonly category: "Axes Settings"; }, { readonly name: "reverseYAxis"; readonly type: "boolean"; readonly label: "Reverse y-axis"; readonly defaultValue: false; readonly category: "Axes Settings"; }, { readonly name: "xAxisRangeMin"; readonly type: "number"; readonly label: "X-axis range min"; readonly category: "Axes Settings"; }, { readonly name: "xAxisRangeMax"; readonly type: "number"; readonly label: "X-axis range max"; readonly category: "Axes Settings"; }, { readonly name: "showTotalLabels"; readonly type: "boolean"; readonly label: "Show total labels"; readonly defaultValue: false; readonly category: "Component Settings"; }, { readonly name: "menuOptions"; readonly type: import("@embeddable.com/core").EmbeddableType; readonly label: "Menu options"; readonly array: true; readonly defaultValue: readonly ["csv", "xlsx", "png"]; readonly category: "Component Settings"; }]; readonly events: [{ readonly name: "onBarClicked"; readonly label: "A bar is clicked"; readonly properties: [{ readonly name: "axisDimensionValue"; readonly label: "Clicked axis dimension value"; readonly type: "string"; }, { readonly name: "axisDimensionTimeRange"; readonly label: "Clicked axis dimension time range"; readonly type: "timeRange"; }, { readonly name: "groupingDimensionValue"; readonly label: "Clicked grouping dimension value"; readonly type: "string"; }, { readonly name: "groupingDimensionTimeRange"; readonly label: "Clicked grouping dimension time range"; readonly type: "timeRange"; }]; }]; }; readonly preview: { ({ embeddableTheme, }: { embeddableTheme: any; }): React.JSX.Element; displayName: string; }; readonly previewConfig: { yAxis: import("@embeddable.com/core").Dimension; groupBy: import("@embeddable.com/core").Dimension; measure: import("@embeddable.com/core").Measure; results: import("@embeddable.com/core").DataResponse; hideMenu: boolean; }; readonly config: { readonly props: (inputs: Inputs, [state, setState]: [BarChartStackedHorizontalProState, (state: BarChartStackedHorizontalProState) => void], clientContext: ThemeClientContext) => { yAxis: import("@embeddable.com/core").Dimension; granularity: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" | undefined; axisOrder: string[] | undefined; axisOrderCacheKey: string | undefined; setGranularity: (granularity: Granularity) => void; setAxisOrderAndCacheKey: (axisOrder: string[], cacheKey: string) => void; resultsAxisOrder: import("@embeddable.com/core").DataResponse | undefined; results: import("@embeddable.com/core").DataResponse | undefined; title: string; description: string; tooltip: string; dataset: import("@embeddable.com/core").Dataset; groupBy: import("@embeddable.com/core").Dimension; measure: import("@embeddable.com/core").Measure; maxResults: number; showLegend: boolean; showTooltips: boolean; showTotalLabels: boolean; showLogarithmicScale: boolean; xAxisLabel: string; yAxisLabel: string; reverseYAxis: boolean; xAxisRangeMin: number; xAxisRangeMax: number; sortDirectionTopYAxis: unknown; limitTopYAxis: number; menuOptions: unknown[]; showValueLabels: boolean; onBarClicked: () => void; }; readonly events: { onBarClicked: (value: BarChartStackedProOptionsClickArg) => { axisDimensionValue: string | number | { operation: "NO_FILTER" | "VALUE"; value?: unknown; __embeddableVariableMeta: true; }; axisDimensionTimeRange: import("@embeddable.com/core").TimeRangeDeserializedValue | { operation: "NO_FILTER" | "VALUE"; value?: unknown; __embeddableVariableMeta: true; }; groupingDimensionValue: string | { operation: "NO_FILTER" | "VALUE"; value?: unknown; __embeddableVariableMeta: true; }; groupingDimensionTimeRange: import("@embeddable.com/core").TimeRangeDeserializedValue | { operation: "NO_FILTER" | "VALUE"; value?: unknown; __embeddableVariableMeta: true; }; }; }; }; }; export {}; //# sourceMappingURL=definition.d.ts.map