changeset 1094:80b47f5d41c3

refac: use 10% relative to scale as buffer for scale dimensions
author Thomas Junk <thomas.junk@intevation.de>
date Tue, 30 Oct 2018 13:36:48 +0100
parents d47b69baacfa
children 2d6d8b676e3f
files client/src/application/Main.vue
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/application/Main.vue	Tue Oct 30 12:01:53 2018 +0100
+++ b/client/src/application/Main.vue	Tue Oct 30 13:36:48 2018 +0100
@@ -43,8 +43,6 @@
 import { mapGetters, mapState } from "vuex";
 import debounce from "debounce";
 
-const DELTA = 0.2;
-
 export default {
   name: "mainview",
   components: {
@@ -90,6 +88,7 @@
       return [this.yScaleLeft.lo, hi];
     },
     yAxisRight() {
+      const DELTA = this.maxAlt * 1.1 - this.maxAlt;
       return [this.maxAlt * 1 + DELTA, -DELTA];
     },
     margins() {