changeset 3371:f76a694f7f7b

available_fairway_depth: fix tooltip
author Thomas Junk <thomas.junk@intevation.de>
date Wed, 22 May 2019 12:53:18 +0200
parents ac630f0f5dbf
children ea49febfbc60
files client/src/components/fairway/AvailableFairwayDepth.vue
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/fairway/AvailableFairwayDepth.vue	Wed May 22 12:33:59 2019 +0200
+++ b/client/src/components/fairway/AvailableFairwayDepth.vue	Wed May 22 12:53:18 2019 +0200
@@ -528,7 +528,7 @@
           const dy = document
             .querySelector(".diagram-container")
             .getBoundingClientRect().left;
-          const value = Number.parseFloat(hoursInDays(d.height)).toFixed(2);
+          const value = Number.parseFloat(hoursInDays(d.ldc)).toFixed(2);
           d3.select("#tooltip")
             .text(value)
             .attr("y", y - 10)
@@ -560,7 +560,9 @@
           const dy = document
             .querySelector(".diagram-container")
             .getBoundingClientRect().left;
-          const value = Number.parseFloat(hoursInDays(d.height)).toFixed(2);
+          const value = Number.parseFloat(hoursInDays(d.highestLevel)).toFixed(
+            2
+          );
           d3.select("#tooltip")
             .text(value)
             .attr("y", y - 10)