Skip to content

Commit

Permalink
fix(axes): correcting tickFormat prop
Browse files Browse the repository at this point in the history
For XAxis it should be either a number or date.
For YAxis it should be a number.
  • Loading branch information
markmcdowell committed Aug 29, 2020
1 parent 206c6a2 commit f97e9c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/axes/src/XAxis.tsx
Expand Up @@ -25,7 +25,7 @@ export interface XAxisProps {
readonly showTickLabel?: boolean;
readonly strokeStyle?: string;
readonly strokeWidth?: number;
readonly tickFormat?: (data: any) => string;
readonly tickFormat?: (value: number | Date) => string;
readonly tickPadding?: number;
readonly tickSize?: number;
readonly tickLabelFill?: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/axes/src/YAxis.tsx
Expand Up @@ -25,7 +25,7 @@ export interface YAxisProps {
readonly showTickLabel?: boolean;
readonly strokeStyle?: string;
readonly strokeWidth?: number;
readonly tickFormat?: (data: any) => string;
readonly tickFormat?: (value: number) => string;
readonly tickPadding?: number;
readonly tickSize?: number;
readonly tickLabelFill?: string;
Expand Down

0 comments on commit f97e9c5

Please sign in to comment.