]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Type Chart.legend property (#10130)
authorEvert Timberg <evert.timberg@gmail.com>
Sat, 5 Feb 2022 14:13:05 +0000 (09:13 -0500)
committerGitHub <noreply@github.com>
Sat, 5 Feb 2022 14:13:05 +0000 (09:13 -0500)
types/index.esm.d.ts

index 241de62a110a0f07cca34abd0caa6b8d14831b7e..6bf0ae14753e4ddc2e5e65cf22b38cc692c866ca 100644 (file)
@@ -490,6 +490,7 @@ export declare class Chart<
   readonly scales: { [key: string]: Scale };
   readonly attached: boolean;
 
+  readonly legend?: LegendElement<TType>; // Only available if legend plugin is registered and enabled
   readonly tooltip?: TooltipModel<TType>; // Only available if tooltip plugin is registered and enabled
 
   data: ChartData<TType, TData, TLabel>;