reaviz
Version:
Data Visualization using React
40 lines (39 loc) • 1.02 kB
TypeScript
import { FC, ReactElement } from 'react';
import { ColorSchemeType } from '../common/color';
import { TreeMapLabel, TreeMapLabelProps } from './TreeMapLabel';
import { TreeMapRect, TreeMapRectProps } from './TreeMapRect';
export interface TreeMapSeriesProps {
/**
* 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;
/**
* Rect element to be rendered.
*
* @default `<TreeMapRect />`
*/
rect?: ReactElement<TreeMapRectProps, typeof TreeMapRect>;
/**
* Label element to be rendered.
*
* @default `<TreeMapLabel />`
*/
label?: ReactElement<TreeMapLabelProps, typeof TreeMapLabel>;
}
export declare const TreeMapSeries: FC<Partial<TreeMapSeriesProps>>;