From 475b532b5c619512604b21a33a29c95bc56ebdc1 Mon Sep 17 00:00:00 2001
From: 1ambda <1amb4a@gmail.com>
Date: Thu, 16 Mar 2017 05:29:54 +0900
Subject: [PATCH 1/2] fix: Reert #2092 for 0.7.0
---
zeppelin-web/src/app/notebook/paragraph/result/result.html | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/zeppelin-web/src/app/notebook/paragraph/result/result.html b/zeppelin-web/src/app/notebook/paragraph/result/result.html
index d76b8a4135e..df09c4d5f59 100644
--- a/zeppelin-web/src/app/notebook/paragraph/result/result.html
+++ b/zeppelin-web/src/app/notebook/paragraph/result/result.html
@@ -28,10 +28,10 @@
&& config.graph.optionOpen && !asIframe && !viewOnly">
+ ng-show="graphMode == viz.id">
+ ng-show="graphMode == viz.id">
@@ -41,7 +41,7 @@
>
+ ng-show="graphMode == viz.id">
From 936123da6c8746104edb73d21dd2559452cf4351 Mon Sep 17 00:00:00 2001
From: 1ambda <1amb4a@gmail.com>
Date: Thu, 16 Mar 2017 05:37:39 +0900
Subject: [PATCH 2/2] fix: Retry until graph DOM is ready
---
.../src/app/notebook/paragraph/result/result.controller.js | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/zeppelin-web/src/app/notebook/paragraph/result/result.controller.js b/zeppelin-web/src/app/notebook/paragraph/result/result.controller.js
index 40f8248a8e8..9b95b40b5ae 100644
--- a/zeppelin-web/src/app/notebook/paragraph/result/result.controller.js
+++ b/zeppelin-web/src/app/notebook/paragraph/result/result.controller.js
@@ -263,7 +263,12 @@ function ResultCtrl($scope, $rootScope, $route, $window, $routeParams, $location
renderApp(app);
} else {
if (type === 'TABLE') {
- $scope.renderGraph($scope.graphMode, refresh);
+ var retryRenderer = function() {
+ var elem = angular.element('#p' + $scope.id + '_graph');
+ if (elem.length) { $scope.renderGraph($scope.graphMode, refresh); }
+ else { $timeout(retryRenderer, 10); }
+ };
+ $timeout(retryRenderer);
} else if (type === 'HTML') {
renderHtml();
} else if (type === 'ANGULAR') {