import { type AttributeOrPlaceholder, type AttributesMeasuresOrPlaceholders, type NullableFiltersOrPlaceholders } from "@gooddata/sdk-ui"; import { type IBucketChartProps } from "../../interfaces/chartProps.js"; /** * @public */ export interface ITreemapBucketProps { /** * Specify one or more measures whose values will be used to create the treemap rectangles. */ measures: AttributesMeasuresOrPlaceholders; /** * Specify an attribute whose values will be used to slice the measure. * * @remarks * Treemap will chart one rectangle for each attribute value, these rectangles represent unique * entities in the hierarchy, each will be colored uniquely. * * Note: treemap only supports viewBy only when `measures` contains a single measure. */ viewBy?: AttributeOrPlaceholder; /** * Specify an attribute, whose values will be used to segment the rectangles created for * the measures or the combination of measure and viewBy attribute values. * * @remarks * Segmenting essentially adds another level into the hierarchy. */ segmentBy?: AttributeOrPlaceholder; /** * Specify filters to apply on the data to chart. */ filters?: NullableFiltersOrPlaceholders; /** * Resolution context for composed placeholders. */ placeholdersResolutionContext?: any; } /** * @public */ export interface ITreemapProps extends IBucketChartProps, ITreemapBucketProps { } /** * Treemap chart presents your data hierarchically as nested rectangles. * * @remarks * Treemaps are useful for comparing proportions within the hierarchy. * * See {@link ITreemapProps} to learn how to configure the Treemap and the * {@link https://www.gooddata.com/docs/gooddata-ui/latest/references/visual_components/treemap | treemap documentation} for more information. * * @public */ export declare function Treemap(props: ITreemapProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=Treemap.d.ts.map