Skip to content

Commit

Permalink
fix(types): Fix the signature of the tick format callback for timeseries
Browse files Browse the repository at this point in the history
Remove wrong number type from axis.x.tick.format

Close #2676
  • Loading branch information
stof authored and netil committed May 17, 2022
1 parent a663f6b commit c9c76e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/options.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1193,7 +1193,7 @@ export interface SubchartOptions {
* Use custom format for x axis ticks - see 'axis.x.tick.format' option for details.
*/
format?: string
| ((this: Chart, x: number | Date) => string | number)
| ((this: Chart, x: Date) => string | number)
| ((this: Chart, index: number, categoryName: string) => string);
/**
* Show or hide x axis tick line.
Expand Down

0 comments on commit c9c76e5

Please sign in to comment.