diff --git a/v8/src/main/java/org/apache/zeppelin/iginx/IginxInterpreter8.java b/v8/src/main/java/org/apache/zeppelin/iginx/IginxInterpreter8.java index 40f06c3..356074f 100644 --- a/v8/src/main/java/org/apache/zeppelin/iginx/IginxInterpreter8.java +++ b/v8/src/main/java/org/apache/zeppelin/iginx/IginxInterpreter8.java @@ -364,6 +364,7 @@ public String buildTreeForShowColumns(SessionExecuteSqlResult sqlResult, String String html = content .toString() + .replace("PARAGRAPH_ID", paragraphId) .replace("NODE_LIST", jsonString) .replace("TREE_DEPTH", String.valueOf(depth)) .replace("TREE_ENABLE", String.valueOf(graphTreeEnable)); diff --git a/v8/src/main/resources/static/highcharts/tree.html b/v8/src/main/resources/static/highcharts/tree.html index 615e4e7..fdae7a0 100644 --- a/v8/src/main/resources/static/highcharts/tree.html +++ b/v8/src/main/resources/static/highcharts/tree.html @@ -9,7 +9,7 @@ max-width: 100vw; min-width: 60vw; } - #container { + #PARAGRAPH_ID_single_container { height: 35rem; } .large-tree{ @@ -24,11 +24,30 @@ width: 55vw; margin: 0 calc((100vw - 60vw) / 2); } + .toggle-button { + padding: 0 5px; + border: none; + background-color: transparent; + color: inherit; + cursor: pointer; + font-size: 14px; + } + .toggle-button::before { + content: ">> "; + color: #333; + } + .toggle-button:hover { + color: #2e70a8; + } + .toggle-button:hover::before { + color: #2e70a8; + }
+