UNPKG

reaviz

Version:

Data Visualization using React

44 lines (43 loc) 1.15 kB
import { FC, ReactElement } from 'react'; import { ColorSchemeType } from '../common/color'; import { SunburstArc, SunburstArcProps } from './SunburstArc'; import { SunburstArcLabel, SunburstArcLabelProps } from './SunburstArcLabel'; export interface SunburstSeriesProps { /** * Id set by the parent. */ id: string; /** * The internal data object built by d3 */ data: any[]; /** * Whether the chart is animated or not. * * @default true */ animated?: boolean; /** * Color scheme for the chart. * * @default 'cybertron' */ colorScheme: ColorSchemeType; /** * Radius of the chart. Set internally by `SunburstChart`. */ radius: number; /** * The arc component to render. * * @default `<SunburstArc />` */ arc?: ReactElement<SunburstArcProps, typeof SunburstArc>; /** * The arc label component to render. * * @default `<SunburstArcLabel />` */ label?: ReactElement<SunburstArcLabelProps, typeof SunburstArcLabel>; } export declare const SunburstSeries: FC<Partial<SunburstSeriesProps>>;