mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
[chart.js] missing Chart.platform and Chart.global.tooltips st… (#40476)
This commit is contained in:
committed by
Sheetal Nandi
parent
2ce09e5a2b
commit
d16369a2cb
@@ -295,3 +295,13 @@ const customTooltipsPieChart = new Chart(ctx, {
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
// platform global values
|
||||
Chart.platform.disableCSSInjection = true;
|
||||
|
||||
// default global static values
|
||||
Chart.defaults.global.defaultFontColor = '#544615';
|
||||
Chart.defaults.global.defaultFontFamily = 'Arial';
|
||||
Chart.defaults.global.tooltips.backgroundColor = '#0a2c54';
|
||||
Chart.defaults.global.tooltips.cornerRadius = 2;
|
||||
Chart.defaults.global.tooltips.displayColors = false;
|
||||
|
||||
Vendored
+7
-1
@@ -55,7 +55,9 @@ declare class Chart {
|
||||
static plugins: PluginServiceStatic;
|
||||
|
||||
static defaults: {
|
||||
global: Chart.ChartOptions & Chart.ChartFontOptions;
|
||||
global: Chart.ChartOptions & Chart.ChartFontOptions & {
|
||||
tooltips: Chart.ChartTooltipOptions
|
||||
};
|
||||
[key: string]: any;
|
||||
};
|
||||
|
||||
@@ -67,6 +69,10 @@ declare class Chart {
|
||||
[key: string]: any;
|
||||
};
|
||||
|
||||
static platform: {
|
||||
disableCSSInjection: boolean
|
||||
};
|
||||
|
||||
// Tooltip Static Options
|
||||
static Tooltip: Chart.ChartTooltipsStaticConfiguration;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user