We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2a32eab + 4387c83 commit 83063faCopy full SHA for 83063fa
1 file changed
app/controllers/view.js
@@ -226,9 +226,12 @@
226
return deferred.promise;
227
};
228
229
- $scope.reportChanged = function () {
230
- $scope.getReport();
231
- };
+ $scope.$on('chart-create', function (evt, chart) {
+ if (chart.id === 'line') {
+ $scope.chart = chart;
232
+ $scope.chart.update();
233
+ }
234
+ });
235
236
$scope.$on('chart-create', function (evt, chart) {
237
$scope.chart = chart;
0 commit comments