Skip to content

Commit 0ca6bcd

Browse files
author
Jay Mathis
committed
Merge branch 'issue-15'
2 parents 90d37bb + 4387c83 commit 0ca6bcd

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
@@ -226,9 +226,12 @@
226226
return deferred.promise;
227227
};
228228

229-
$scope.reportChanged = function () {
230-
$scope.getReport();
231-
};
229+
$scope.$on('chart-create', function (evt, chart) {
230+
if (chart.id === 'line') {
231+
$scope.chart = chart;
232+
$scope.chart.update();
233+
}
234+
});
232235

233236
$scope.$on('chart-create', function (evt, chart) {
234237
$scope.chart = chart;

0 commit comments

Comments
 (0)