import { DataResponse, LoadDataRequest } from '@embeddable.com/core'; import { PieChartClickArg } from '../pies.types'; import { Inputs } from '@embeddable.com/react'; declare const meta: { readonly name: "PieChartPro"; readonly label: "Pie Chart"; readonly description: "Pie chart for parts-of-whole over one dimension with one measure. Prefer DonutChartPro for a modern look."; readonly category: "Pie Charts"; readonly defaultHeight: 442; readonly defaultWidth: 630; readonly inputs: [{ readonly name: "dataset"; readonly type: "dataset"; readonly label: "Dataset"; readonly required: true; readonly category: "Component Data"; }, { readonly inputs: [...any[], { readonly name: "showValueAsPercentage"; readonly type: "boolean"; readonly label: "Show values as percentage"; readonly defaultValue: false; }]; readonly name: "measure"; readonly type: "measure"; readonly label: "Measure"; readonly config: { readonly dataset: "dataset"; }; readonly required: true; readonly category: "Component Data"; }, { readonly name: "dimension"; readonly type: "dimension"; readonly label: "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: "showLegend"; readonly type: "boolean"; readonly label: "Show legend"; readonly defaultValue: true; readonly category: "Component Settings"; }, { readonly name: "maxLegendItems"; readonly type: "number"; readonly label: "Max legend items"; readonly defaultValue: 10; readonly category: "Component Data"; }, { readonly name: "showTooltips"; readonly type: "boolean"; readonly label: "Show tooltips"; readonly defaultValue: true; readonly category: "Component Settings"; }, { readonly name: "showValueLabels"; readonly type: "boolean"; readonly label: "Show value labels"; readonly defaultValue: true; 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: "onSegmentClick"; readonly label: "A segment is clicked"; readonly properties: [{ readonly name: "dimensionValue"; readonly label: "Clicked dimension"; readonly type: "string"; }, { readonly name: "dimensionTimeRange"; readonly label: "Clicked dimension time range"; readonly type: "timeRange"; }]; }]; }; export declare const pieChartPro: { readonly Component: (props: import("./index").PieChartProProps) => import("react").JSX.Element; readonly meta: { readonly name: "PieChartPro"; readonly label: "Pie Chart"; readonly description: "Pie chart for parts-of-whole over one dimension with one measure. Prefer DonutChartPro for a modern look."; readonly category: "Pie Charts"; readonly defaultHeight: 442; readonly defaultWidth: 630; readonly inputs: [{ readonly name: "dataset"; readonly type: "dataset"; readonly label: "Dataset"; readonly required: true; readonly category: "Component Data"; }, { readonly inputs: [...any[], { readonly name: "showValueAsPercentage"; readonly type: "boolean"; readonly label: "Show values as percentage"; readonly defaultValue: false; }]; readonly name: "measure"; readonly type: "measure"; readonly label: "Measure"; readonly config: { readonly dataset: "dataset"; }; readonly required: true; readonly category: "Component Data"; }, { readonly name: "dimension"; readonly type: "dimension"; readonly label: "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: "showLegend"; readonly type: "boolean"; readonly label: "Show legend"; readonly defaultValue: true; readonly category: "Component Settings"; }, { readonly name: "maxLegendItems"; readonly type: "number"; readonly label: "Max legend items"; readonly defaultValue: 10; readonly category: "Component Data"; }, { readonly name: "showTooltips"; readonly type: "boolean"; readonly label: "Show tooltips"; readonly defaultValue: true; readonly category: "Component Settings"; }, { readonly name: "showValueLabels"; readonly type: "boolean"; readonly label: "Show value labels"; readonly defaultValue: true; 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: "onSegmentClick"; readonly label: "A segment is clicked"; readonly properties: [{ readonly name: "dimensionValue"; readonly label: "Clicked dimension"; readonly type: "string"; }, { readonly name: "dimensionTimeRange"; readonly label: "Clicked dimension time range"; readonly type: "timeRange"; }]; }]; }; readonly preview: { ({ embeddableTheme, }: { embeddableTheme: any; }): React.JSX.Element; displayName: string; }; readonly previewConfig: { dimension: import("@embeddable.com/core").Dimension; measure: import("@embeddable.com/core").Measure; results: DataResponse; showValueLabels: boolean; hideMenu: boolean; }; readonly config: { readonly props: (inputs: Inputs) => { results: DataResponse; title: string; description: string; tooltip: string; dataset: import("@embeddable.com/core").Dataset; maxLegendItems: number; dimension: import("@embeddable.com/core").Dimension; showLegend: boolean; showTooltips: boolean; showValueLabels: boolean; menuOptions: unknown[]; measure: import("@embeddable.com/core").Measure; onSegmentClick: () => void; }; readonly events: { onSegmentClick: (value: PieChartClickArg) => { dimensionValue: string | { operation: "NO_FILTER" | "VALUE"; value?: unknown; __embeddableVariableMeta: true; }; dimensionTimeRange: import("@embeddable.com/core").TimeRangeDeserializedValue | { operation: "NO_FILTER" | "VALUE"; value?: unknown; __embeddableVariableMeta: true; }; }; }; }; readonly results: { readonly loadDataArgs: (inputs: Inputs) => LoadDataRequest; readonly loadData: (inputs: Inputs) => DataResponse; }; }; export {}; //# sourceMappingURL=definition.d.ts.map