Mercurial > gemma
diff client/src/components/gauge/Waterlevel.vue @ 3691:afc8ac7001ee
client: waterlevel diagrams: fixed drawing of ref waterlevel lines
Calculation of coordinates was wrong and rendering only seemed to be correct in chrome, in firefox the lines were too short
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Tue, 18 Jun 2019 17:04:45 +0200 |
parents | af06045e87c9 |
children | 116c5fe6a5d7 |
line wrap: on
line diff
--- a/client/src/components/gauge/Waterlevel.vue Tue Jun 18 16:52:02 2019 +0200 +++ b/client/src/components/gauge/Waterlevel.vue Tue Jun 18 17:04:45 2019 +0200 @@ -956,7 +956,7 @@ this.diagram .append("path") .datum([ - { x: 0, y: refWaterLevels[ref] }, + { x: this.extent.date[0], y: refWaterLevels[ref] }, { x: this.extent.date[1], y: refWaterLevels[ref] } ]) .attr("class", ref.toLowerCase() + "-line")