Unload chart data before loading new one.
This commit is contained in:
parent
0f547a532c
commit
6f477b6d22
@ -53,6 +53,8 @@ var balanceChartModule = angular.module('balanceChartModule', [
|
||||
];
|
||||
});
|
||||
|
||||
vm.chart.unload();
|
||||
|
||||
vm.chart.load({
|
||||
rows: headers.concat(rows)
|
||||
});
|
||||
|
@ -66,6 +66,8 @@ var categoryChartModule = angular.module('categoryChartModule', [
|
||||
colors[expensesName] = expensesColor;
|
||||
});
|
||||
|
||||
vm.chart.unload();
|
||||
|
||||
vm.chart.load({
|
||||
columns: revenues.concat(expenses),
|
||||
names: names,
|
||||
|
Loading…
Reference in New Issue
Block a user