reaviz
Version:
Data Visualization using React
37 lines (35 loc) • 1 kB
TypeScript
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.
*/
animated?: boolean;
/**
* Color scheme for the chart.
*/
colorScheme: ColorSchemeType;
/**
* Radius of the chart. Set internally by `SunburstChart`.
*/
radius: number;
/**
* The arc component to render.
*/
arc?: ReactElement<SunburstArcProps, typeof SunburstArc>;
/**
* The arc label component to render.
*/
label?: ReactElement<SunburstArcLabelProps, typeof SunburstArcLabel>;
}
export declare const SunburstSeries: FC<Partial<SunburstSeriesProps>>;