Merge pull request #31175 from gwmccull/victory

Victory - add fixLabelOverlap property to VictoryAxisProps interface
This commit is contained in:
Nathan Shively-Sanders
2018-12-18 11:37:03 -08:00
committed by GitHub
+8 -1
View File
@@ -1143,8 +1143,15 @@ declare module "victory" {
* }
* ]}
*}}
*/
*/
events?: EventPropTypeInterface<"axis" | "axisLabel" | "grid" | "ticks" | "tickLabels" | "parent", number | string>[];
/**
* When true, this prop reduces the number of tick labels to fit the length of the axis.
* Labels are removed at approximately even intervals from the original array of labels.
* This feature only works well for labels that are approximately evenly spaced.
* @default false
*/
fixLabelOverlap?: boolean;
/**
* The gridComponent prop takes in an entire component which will be used
* to create grid lines. The new element created from the passed gridComponent