mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +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:
4
chartjs/chart.d.ts
vendored
4
chartjs/chart.d.ts
vendored
@@ -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