UNPKG

reaviz

Version:

Data Visualization using React

50 lines (49 loc) 1.36 kB
import { FC, ReactElement } from 'react'; import { HeatmapCell, HeatmapCellProps } from './HeatmapCell'; import { ColorSchemeType } from '../../common/color'; import { ChartInternalNestedDataShape } from '../../common/data'; import { ColorSchemeStyleArray } from '../../common/color/helper'; export interface HeatmapSeriesProps { /** * Padding between cells. */ padding: number; /** * Id set by `Heatmap`. */ id: string; /** * Parsed data set by `Heatmap`. */ data: ChartInternalNestedDataShape[]; /** * D3 scale for X Axis. Set internally by `Heatmap`. */ xScale: any; /** * D3 scale for Y Axis. Set internally by `Heatmap`. */ yScale: any; /** * Color scheme for the chart. */ colorScheme: ColorSchemeType | ColorSchemeStyleArray; /** * Color for the empty cell of the chart. */ emptyColor: string; /** * Whether the chart is animated or not. */ animated: boolean; /** * Cell component that will be rendered. */ cell: ReactElement<HeatmapCellProps, typeof HeatmapCell>; /** * Selected cell(s) in active state */ selections?: any; } export declare const HeatmapSeries: FC<Partial<HeatmapSeriesProps>>; export declare const HEATMAP_SERIES_DEFAULT_PROPS: Partial<HeatmapSeriesProps>;