From e84e5be2065641c6a2f8071bafcdccc424814767 Mon Sep 17 00:00:00 2001 From: daminglu Date: Mon, 16 Apr 2018 14:59:43 -0700 Subject: [PATCH] Polish graph (#395) --- .travis.yml | 2 +- frontend/src/graph/Graph.vue | 9 ++ frontend/src/graph/ui/Chart.vue | 110 ++++++++++++++++--- frontend/src/graph/ui/Config.vue | 31 +++++- requirements.txt | 2 +- scripts/tests.sh | 1 + visualdl/server/mock/download_mock_models.sh | 4 +- 7 files changed, 136 insertions(+), 23 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5653f643..bb778f7b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -52,7 +52,7 @@ before_install: script: - if [[ "$JOB" == "check_style" ]]; then ./scripts/check_style.sh; fi - - if [[ "$JOB" == "test" ]]; then ./scripts/tests.sh all; WITH_PYTHON3=ON ./scripts/tests.sh all; fi + - if [[ "$JOB" == "test" ]]; then ./scripts/tests.sh all; fi - if [[ "$JOB" == "build_doc" ]]; then ./scripts/deploy_docs_on_travis.sh; fi; notifications: diff --git a/frontend/src/graph/Graph.vue b/frontend/src/graph/Graph.vue index ed037726..e8097b1c 100644 --- a/frontend/src/graph/Graph.vue +++ b/frontend/src/graph/Graph.vue @@ -3,8 +3,11 @@
@@ -12,7 +15,9 @@
@@ -34,7 +39,11 @@ export default { data() { return { doDownload: false, + doRestore: false, curNode: {}, + config: { + scale: 0.5, + }, }; }, mounted() { diff --git a/frontend/src/graph/ui/Chart.vue b/frontend/src/graph/ui/Chart.vue index 008f9201..019ed2d7 100644 --- a/frontend/src/graph/ui/Chart.vue +++ b/frontend/src/graph/ui/Chart.vue @@ -1,6 +1,7 @@