@spaced-out/ui-design-system
Version:
Sense UI components library
29 lines • 1.18 kB
TypeScript
import * as React from 'react';
import type { ChartOptions, Drilldown, LegendOptionsType, SeriesOptionsType } from '../../../types/charts';
import type { ChartWrapperClassNames, ExportOptionType } from '../ChartWrapper';
type ClassNames = Readonly<ChartWrapperClassNames & {
highChart?: string;
subtitleClassNames?: SubtitleClassNames;
}>;
type SubtitleClassNames = {
wrapper?: string;
text?: string;
subtext?: string;
};
export type DonutChartProps = ChartOptions & {
isLoading?: boolean;
classNames?: ClassNames;
cardTitle?: React.ReactNode;
customExportOptions?: Array<ExportOptionType> | null;
headerActions?: React.ReactNode;
centerText?: string;
centerSubtext?: string;
series: Array<SeriesOptionsType>;
drilldown?: Drilldown;
legend?: LegendOptionsType;
hasEmptyData?: boolean;
emptyText?: React.ReactNode;
};
export declare const DonutChart: ({ isLoading, classNames, cardTitle, customExportOptions, headerActions, series, drilldown, legend, centerText, centerSubtext, hasEmptyData, emptyText, ...userOptions }: DonutChartProps) => React.JSX.Element;
export {};
//# sourceMappingURL=DonutChart.d.ts.map