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
  • Loading branch information
stof committed May 7, 2022
1 parent 9a87464 commit cfdf461
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 cfdf461

Please sign in to comment.