mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 00:07:07 +00:00
committed by
Ryan Cavanaugh
parent
4e23dab093
commit
25dcc2cabf
@@ -68,6 +68,7 @@ const chart: Chart = new Chart(ctx, {
|
||||
{
|
||||
ticks: {
|
||||
callback: Math.floor,
|
||||
sampleSize: 10,
|
||||
},
|
||||
gridLines: {
|
||||
display: false,
|
||||
@@ -266,7 +267,8 @@ const linearScaleChart: Chart = new Chart(ctx, {
|
||||
distribution: 'series',
|
||||
ticks: {
|
||||
source: 'data',
|
||||
autoSkip: true
|
||||
autoSkip: true,
|
||||
sampleSize: 1,
|
||||
}
|
||||
}],
|
||||
yAxes: [{
|
||||
|
||||
Vendored
+7
@@ -563,6 +563,13 @@ declare namespace Chart {
|
||||
mirror?: boolean;
|
||||
padding?: number;
|
||||
reverse?: boolean;
|
||||
/**
|
||||
* The number of ticks to examine when deciding how many labels will fit.
|
||||
* Setting a smaller value will be faster, but may be less accurate
|
||||
* when there is large variability in label length.
|
||||
* Deault: `ticks.length`
|
||||
*/
|
||||
sampleSize?: number;
|
||||
showLabelBackdrop?: boolean;
|
||||
source?: 'auto' | 'data' | 'labels';
|
||||
stepSize?: number;
|
||||
|
||||
Reference in New Issue
Block a user