Fixed domain tuples. (#27754)

The length of all domain tuples should be 2, not an arbitrary length.
This commit is contained in:
Victor Widell
2018-08-01 11:37:49 -07:00
committed by Sheetal Nandi
parent ca12f22b4d
commit 3d473f170a
+3 -3
View File
@@ -518,7 +518,7 @@ export interface PolarRadiusAxisProps extends EventAttributes, Partial<Presentat
tick?: boolean | object | React.ReactElement<any> | ContentRenderer<any>;
stroke?: string;
tickFormatter: TickFormatterFunction;
domain?: PolarRadiusAxisDomain[];
domain?: [PolarRadiusAxisDomain, PolarRadiusAxisDomain];
scale?: ScaleType | RechartsFunction;
allowDataOverflow?: boolean;
}
@@ -882,7 +882,7 @@ export interface XAxisProps extends EventAttributes {
unit?: string | number;
// The unique id of x-axis
xAxisId?: string | number;
domain?: AxisDomain[];
domain?: [AxisDomain, AxisDomain];
// The key of data displayed in the axis
dataKey?: DataKey;
// The width of axis which is usually calculated internally
@@ -933,7 +933,7 @@ export interface YAxisProps extends EventAttributes {
unit?: string | number;
// The unique id of y-axis
yAxisId?: string | number;
domain?: AxisDomain[];
domain?: [AxisDomain, AxisDomain];
// The key of data displayed in the axis
dataKey?: DataKey;
// Ticks can be any type when the axis is the type of category