mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 15:27:05 +00:00
[chart.js] Add ticks to afterBuildTicks function (#43141)
This commit is contained in:
@@ -276,6 +276,9 @@ const linearScaleChart: Chart = new Chart(ctx, {
|
||||
scaleLabel: {
|
||||
display: true,
|
||||
labelString: 'Closing price ($)'
|
||||
},
|
||||
afterBuildTicks: (scale, ticks) => {
|
||||
return [Math.max(...ticks), 10, Math.min(...ticks)];
|
||||
}
|
||||
}]
|
||||
},
|
||||
|
||||
Vendored
+1
-1
@@ -718,7 +718,7 @@ declare namespace Chart {
|
||||
afterUpdate?(scale?: any): void;
|
||||
afterSetDimension?(scale?: any): void;
|
||||
afterDataLimits?(scale?: any): void;
|
||||
afterBuildTicks?(scale?: any): void;
|
||||
afterBuildTicks?(scale: any, ticks: number[]): number[];
|
||||
afterTickToLabelConversion?(scale?: any): void;
|
||||
afterCalculateTickRotation?(scale?: any): void;
|
||||
afterFit?(scale?: any): void;
|
||||
|
||||
Reference in New Issue
Block a user