Mercurial > gemma
changeset 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 | 2589cceebca1 |
children | 3138836bf840 |
files | client/src/components/gauge/HydrologicalConditions.vue client/src/components/gauge/Waterlevel.vue |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/gauge/HydrologicalConditions.vue Tue Jun 18 16:52:02 2019 +0200 +++ b/client/src/components/gauge/HydrologicalConditions.vue Tue Jun 18 17:04:45 2019 +0200 @@ -879,7 +879,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")
--- 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")