Skip to content

Commit 4387c83

Browse files
author
Jay Mathis
committed
possible fix for issue-15
1 parent a023d89 commit 4387c83

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

app/controllers/view.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,12 @@
220220
return deferred.promise;
221221
};
222222

223-
$scope.reportChanged = function () {
224-
$scope.getReport();
225-
};
223+
$scope.$on('chart-create', function (evt, chart) {
224+
if (chart.id === 'line') {
225+
$scope.chart = chart;
226+
$scope.chart.update();
227+
}
228+
});
226229

227230
init = function () {
228231
var promises = [];

0 commit comments

Comments
 (0)