# HG changeset patch # User Thomas Junk # Date 1558522398 -7200 # Node ID f76a694f7f7b61e8044eea879a22c12909caee9e # Parent ac630f0f5dbf6e10854c06f9a06214fe3192cd9e available_fairway_depth: fix tooltip diff -r ac630f0f5dbf -r f76a694f7f7b client/src/components/fairway/AvailableFairwayDepth.vue --- 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)