It looks like in the latest version of the Kendo UI for Angular charts module (kendo-angular-charts) there is a new issue with the donut chart.
If the donut chart is passed an empty array of data it crashes with the message "Cannot read property 'sector' of undefined."
I made this plunker from the donut example in the docs to demonstrate the issue: http://plnkr.co/edit/Zv9Vx9Jxfx2KsZLRYCe5?p=preview
Previous versions of the donut chart were able to handle empty arrays of data.
Looking at the code there is no check for an empty points array in the function setDonutCenter.
e.prototype.setDonutCenter =
function
() {
if
(
this
.instance &&
this
.options &&
this
.options.series) {
var
t =
this
.options.series[0];
if
(t &&
"donut"
=== t.type) {
var
e =
this
.instance._plotArea.charts[0].points[0].sector
, n = e.innerRadius
, r = e.center.y - n
, o = e.center.x - n
, i = 2 * n;
this
.donutCenterStyle = {
height: i +
"px"
,
left: o +
"px"
,
top: r +
"px"
,
width: i +
"px"
}
}
}
}