Mercurial > gemma
changeset 3874:7b6a74919051 improve-fwa-diagrams
client: available fairway depth diagram: rounding day numbers
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Thu, 20 Jun 2019 15:34:25 +0200 |
parents | eab5e934c37d |
children | 30083005f13e |
files | client/src/components/fairway/AvailableFairwayDepth.vue |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/fairway/AvailableFairwayDepth.vue Thu Jun 20 15:09:48 2019 +0200 +++ b/client/src/components/fairway/AvailableFairwayDepth.vue Thu Jun 20 15:34:25 2019 +0200 @@ -500,7 +500,7 @@ drawTooltip() { this.diagram .append("text") - .text("banane") + .text("") .attr("font-size", "0.8em") .attr("opacity", 0) .attr("id", "tooltip"); @@ -544,7 +544,7 @@ .getBoundingClientRect().left; const value = Number.parseFloat(hoursInDays(d.height)).toFixed(2); d3.select("#tooltip") - .text(value) + .text(Math.round(value)) .attr("y", y - 10) .attr("x", d3.event.pageX - dy); //d3.event.pageX gives coordinates relative to SVG @@ -584,7 +584,7 @@ .getBoundingClientRect().left; const value = Number.parseFloat(hoursInDays(d.ldc)).toFixed(2); d3.select("#tooltip") - .text(value) + .text(Math.round(value)) .attr("y", y - 50) .attr("x", d3.event.pageX - dy); //d3.event.pageX gives coordinates relative to SVG @@ -619,7 +619,7 @@ 2 ); d3.select("#tooltip") - .text(value) + .text(Math.round(value)) .attr("y", y - 50) .attr("x", d3.event.pageX - dy); //d3.event.pageX gives coordinates relative to SVG