UNPKG

reaviz

Version:

Data Visualization using React

45 lines (44 loc) 1.14 kB
import { FC, ReactElement } from 'react'; import { HierarchyCircularNode } from 'd3-hierarchy'; import { ColorSchemeType } from '../common/color'; import { Bubble, BubbleProps } from './Bubble'; import { BubbleLabel, BubbleLabelProps } from './BubbleLabel'; export interface BubbleSeriesProps { /** * Id set by the parent. */ id: string; /** * The internal data object built by d3 */ data: HierarchyCircularNode<any>[]; /** * Whether the chart is animated or not. * * @default true */ animated?: boolean; /** * Color scheme for the chart. * * @default 'cybertron' */ colorScheme: ColorSchemeType; /** * Bubble element. * * @default `<Bubble />` */ bubble?: ReactElement<BubbleProps, typeof Bubble>; /** * Bubble element. */ format?: (item: any) => ReactElement<BubbleProps, typeof Bubble>; /** * Label element. * * @default `<BubbleLabel />` */ label?: ReactElement<BubbleLabelProps, typeof BubbleLabel>; } export declare const BubbleSeries: FC<Partial<BubbleSeriesProps>>;