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:
Ivan Akulov
2015-03-17 13:17:14 +03:00
parent 95d860879f
commit 32b31deb18

4
chartjs/chart.d.ts vendored
View File

@@ -28,8 +28,8 @@ interface LinearChartData {
interface CircularChartData {
value: number;
color: string;
highlight: string;
label: string;
highlight?: string;
label?: string;
}
interface ChartSettings {