Skip to content

Commit 83063fa

Browse files
authored
Merge pull request #19 from mathisjay/issue-15
possible fix for issue-15
2 parents 2a32eab + 4387c83 commit 83063fa

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)