mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Mark "highlight" and "label" properties of CircularChartData as optional
The "highlight" and "label" properties of CircularChartData are actually optional: highlight defaults to color (https://github.com/nnnick/Chart.js/blob/master/src/Chart.Doughnut.js#L98), and label is only rendered when present (https://github.com/nnnick/Chart.js/blob/master/src/Chart.Doughnut.js#L35).
This commit is contained in:
Vendored
+2
-2
@@ -28,8 +28,8 @@ interface LinearChartData {
|
||||
interface CircularChartData {
|
||||
value: number;
|
||||
color: string;
|
||||
highlight: string;
|
||||
label: string;
|
||||
highlight?: string;
|
||||
label?: string;
|
||||
}
|
||||
|
||||
interface ChartSettings {
|
||||
|
||||
Reference in New Issue
Block a user