import { type AttributeOrPlaceholder, type AttributesMeasuresOrPlaceholders, type NullableFiltersOrPlaceholders, type SortsOrPlaceholders } from "@gooddata/sdk-ui"; import { type IBucketChartProps } from "../../interfaces/chartProps.js"; /** * @public */ export interface IPieChartBucketProps { /** * Specify one or more measures to segment the pie chart. * * @remarks * If you specify a single measure, then you may further specify the viewBy attribute - there will be a * pie slice per attribute value. * * If you specify multiple measures, then there will be a pie slice for each measure value. You may not * specify the viewBy in this case. */ measures: AttributesMeasuresOrPlaceholders; /** * Specify viewBy attribute that will be used to create the pie slices. There will be a slice * for each value of the attribute. */ viewBy?: AttributeOrPlaceholder; /** * Specify filters to apply on the data to chart. */ filters?: NullableFiltersOrPlaceholders; /** * Specify how to sort the data to chart. */ sortBy?: SortsOrPlaceholders; /** * Resolution context for composed placeholders. */ placeholdersResolutionContext?: any; } /** * @public */ export interface IPieChartProps extends IBucketChartProps, IPieChartBucketProps { } /** * Pie chart shows data as proportional segments of a disc. * * @remarks * Pie charts can be segmented by either multiple measures or an attribute. * * See {@link IPieChartProps} to learn how to configure the PieChart and the * {@link https://www.gooddata.com/docs/gooddata-ui/latest/references/visual_components/pie_chart | pie chart documentation} for more information. * * @public */ export declare function PieChart(props: IPieChartProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=PieChart.d.ts.map