File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 56
56
57
57
##### tickMethod
58
58
59
- <description >** 可选** _ Function _ </description >
59
+ <description >** 可选** _ string | Function _ </description >
60
60
61
- 功能描述:自定义计算 tick 的方法。
61
+ 功能描述:指定 tick 计算方法,或自定义计算 tick 的方法,内置 tick 计算方法包括 ` cat ` 、 ` time-cat ` 、 ` wilkinson-extended ` 、 ` r-pretty ` 、 ` time ` 、 ` time-pretty ` 、 ` log ` 、 ` pow ` 、 ` quantile ` 、 ` d3-linear `
62
62
63
63
默认配置:` false `
64
64
Original file line number Diff line number Diff line change 56
56
57
57
##### tickMethod
58
58
59
- <description >** 可选** _ Function _ </description >
59
+ <description >** 可选** _ string | Function _ </description >
60
60
61
- 功能描述:自定义计算 tick 的方法。
61
+ 功能描述:指定 tick 计算方法,或自定义计算 tick 的方法,内置 tick 计算方法包括 ` cat ` 、 ` time-cat ` 、 ` wilkinson-extended ` 、 ` r-pretty ` 、 ` time ` 、 ` time-pretty ` 、 ` log ` 、 ` pow ` 、 ` quantile ` 、 ` d3-linear `
62
62
63
63
默认配置:` false `
64
64
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ export type Axis = AxisOption & {
41
41
readonly tickInterval ?: number ;
42
42
43
43
/**
44
- * 自定义计算 tick 的方法
44
+ * 指定 tick 计算方法或自定义计算 tick 的方法
45
45
*/
46
- readonly tickMethod ?: ( scale : any ) => any [ ] ;
46
+ readonly tickMethod ?: string | ( ( scale : any ) => any [ ] ) ;
47
47
} ;
You can’t perform that action at this time.
0 commit comments