UNPKG

891 BTypeScriptView Raw
1/**
2 * @fileOverview Z Axis
3 */
4import React from 'react';
5import { ScaleType, DataKey, AxisDomain } from '../util/types';
6export interface Props {
7 type?: 'number' | 'category';
8 /** The name of data displayed in the axis */
9 name?: string | number;
10 /** The unit of data displayed in the axis */
11 unit?: string | number;
12 /** The unique id of z-axis */
13 zAxisId?: string | number;
14 /** The key of data displayed in the axis */
15 dataKey?: DataKey<any>;
16 /** The range of axis */
17 range?: number[];
18 scale?: ScaleType | Function;
19 /** The domain of scale in this axis */
20 domain?: AxisDomain;
21}
22export declare class ZAxis extends React.Component<Props> {
23 static displayName: string;
24 static defaultProps: {
25 zAxisId: number;
26 range: number[];
27 scale: string;
28 type: string;
29 };
30 render(): React.ReactNode;
31}