import { ITheme, IStyle } from 'office-ui-fabric-react/lib/Styling'; import { IStyleFunctionOrObject } from 'office-ui-fabric-react/lib/Utilities'; import { IOverflowSetProps } from 'office-ui-fabric-react/lib/OverflowSet'; import { IFocusZoneProps } from '@fluentui/react-focus'; export interface IDonutChart {} import { IChartProps } from './index'; export interface IDonutChartProps { /** * Data to render in the chart. */ data?: IChartProps; /** * Width of the donut. */ width?: number; /** * Height of the donut. */ height?: number; /** * Additional CSS class(es) to apply to the DonutChart. */ className?: string; /** * inner radius for donut size */ innerRadius?: number; /** * Theme (provided through customization.) */ theme?: ITheme; /** * Call to provide customized styling that will layer on top of the variant rules. */ styles?: IStyleFunctionOrObject; /** * Width of line stroke */ strokeWidth?: string; /** * Url that the data-viz needs to redirect to upon clicking on it */ href?: string; /** * overflow props for the legends */ legendsOverflowProps?: Partial; /** * text for overflow legends string */ legendsOverflowText?: string; /** * props for inside donut value */ valueInsideDonut?: string | number; /** * focus zone props in hover card for legends */ focusZonePropsForLegendsInHoverCard?: IFocusZoneProps; /** * decides wether to show/hide legends * @defaultvalue false */ hideLegend?: boolean; /** * Do not show tooltips in chart * * @default false */ hideTooltip?: boolean; } export interface IDonutChartStyleProps { /** * Theme (provided through customization.) */ theme: ITheme; /** * Additional CSS class(es) to apply to the Donut chart. */ className?: string; /** * Height of the donut. */ height?: number; /** * Width of the donut. */ width: number; /** * color for hover font color */ color?: string; } export interface IDonutChartStyles { /** * Style for the root element. */ root?: IStyle; /** * Style for the chart. */ chart?: IStyle; /** * Style for the legend container. */ legendContainer: IStyle; }