Fixed chart removing if empty array.

This commit is contained in:
Alexis Lahouze 2013-01-12 22:14:42 +01:00
parent 868cf3138a
commit b0f12e9616

View File

@ -430,6 +430,8 @@ drawChart = function(entries, element) {
rendererOptions:{ rendererOptions:{
}}], }}],
}); });
} else {
window.chart = null;
} }
}; };
@ -461,6 +463,8 @@ drawPieChart = function(entries, element) {
useAxesFormatters:false useAxesFormatters:false
} }
}); });
} else {
window.pieChart = null;
} }
}; };