[FIX] web: pie chart

Mixing positive and negative values in a pie chart is not possible.
However, in this case, a crash occurs instead of displaying an error
message.

opw-786137
This commit is contained in:
Nicolas Martinelli
2017-12-04 14:02:12 +01:00
committed by Nicolas Martinelli
parent 5e38bef5a5
commit e5075147cf
@@ -99,7 +99,7 @@ return Widget.extend({
}));
} else {
var chart = this['display_' + this.mode]();
if (chart) {
if (chart && chart.tooltip.chartContainer) {
chart.tooltip.chartContainer(this.$el[0]);
}
}