diff client/src/fairway/Fairwayprofile.vue @ 844:c2cba785ca4d

WIP Fairwayprofile
author Thomas Junk <thomas.junk@intevation.de>
date Fri, 28 Sep 2018 11:40:28 +0200
parents 07be3e5f99a9
children 596ef3b46028
line wrap: on
line diff
--- a/client/src/fairway/Fairwayprofile.vue	Fri Sep 28 11:34:51 2018 +0200
+++ b/client/src/fairway/Fairwayprofile.vue	Fri Sep 28 11:40:28 2018 +0200
@@ -48,7 +48,9 @@
     "totalLength",
     "waterLevels",
     "fairwayCoordinates",
-    "selectedWaterLevel"
+    "selectedWaterLevel",
+    "minAlt",
+    "maxAlt"
   ],
   computed: {
     waterColor() {
@@ -137,7 +139,7 @@
           .x(function(d) {
             return xScale(d.x);
           })
-          .y0(yScaleRight(this.selectedWaterLevel))
+          .y0(0)
           .y1(function(d) {
             return yScaleRight(d.y);
           });
@@ -235,10 +237,7 @@
         });
       graph
         .append("path")
-        .datum([
-          { x: 0, y: this.selectedWaterLevel },
-          { x: this.totalLength, y: this.selectedWaterLevel }
-        ])
+        .datum([{ x: 0, y: 0 }, { x: this.totalLength, y: 0 }])
         .attr("fill", this.waterColor)
         .attr("stroke", this.waterColor)
         .attr("d", waterArea);