Mercurial > gemma
diff client/src/components/fairway/AvailableFairwayDepth.vue @ 3371:f76a694f7f7b
available_fairway_depth: fix tooltip
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Wed, 22 May 2019 12:53:18 +0200 |
parents | b2ccfebd5616 |
children | e1a75cd15450 |
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)