changeset 3386:0ba142a4bf43

afdlnwl: colors
author Thomas Junk <thomas.junk@intevation.de>
date Wed, 22 May 2019 16:13:38 +0200
parents e994565a59a1
children d9eda49a52f4
files client/src/components/fairway/AvailableFairwayDepthLNWL.vue
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/fairway/AvailableFairwayDepthLNWL.vue	Wed May 22 16:09:56 2019 +0200
+++ b/client/src/components/fairway/AvailableFairwayDepthLNWL.vue	Wed May 22 16:13:38 2019 +0200
@@ -437,7 +437,10 @@
     drawAFD() {
       let afd = this.diagram
         .append("g")
-        .attr("transform", `translate(${this.paddingRight + this.barsWidth})`);
+        .attr(
+          "transform",
+          `translate(${this.paddingRight + this.barsWidth / 2})`
+        );
       afd
         .selectAll("rect")
         .data(this.fwLNWLData.afd)
@@ -511,7 +514,7 @@
         .attr("y", d => {
           return this.yScale(d.translateY);
         })
-        .attr("width", this.barsWidth)
+        .attr("width", this.barsWidth / 2)
         .attr("fill", d => {
           return this.$options.LWNLCOLORS[d.level];
         });
@@ -552,7 +555,7 @@
   AFDCOLORS: ["#782121", "#ff6c6c", "#3675ff"],
   LWNLCOLORS: {
     LDC: "#aaaaaa",
-    HDC: "#ff6600"
+    HDC: "#43FFE1"
   }
 };
 </script>