Mercurial > gemma
changeset 3907:7b172a1fd9e7
client: available fairway depth diagram: rounded values in tooltip
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Wed, 10 Jul 2019 17:16:59 +0200 |
parents | ec1d91fdd6a2 |
children | 976c83b6f479 |
files | client/src/components/fairway/AvailableFairwayDepthLNWL.vue |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/fairway/AvailableFairwayDepthLNWL.vue Wed Jul 10 17:08:28 2019 +0200 +++ b/client/src/components/fairway/AvailableFairwayDepthLNWL.vue Wed Jul 10 17:16:59 2019 +0200 @@ -445,7 +445,7 @@ .querySelector(".diagram-container") .getBoundingClientRect().left; d3.select("#tooltip") - .text(d.toFixed(2)) + .text(Math.round(d)) .attr("y", y - 10) .attr("x", d3.event.pageX - dy); //d3.event.pageX gives coordinates relative to SVG @@ -496,7 +496,7 @@ .querySelector(".diagram-container") .getBoundingClientRect().left; d3.select("#tooltip") - .text(d[0].toFixed(2)) + .text(Math.round(d[0])) .attr("y", y - 10) .attr("x", d3.event.pageX - dy); //d3.event.pageX gives coordinates relative to SVG