# HG changeset patch # User Markus Kottlaender # Date 1560870285 -7200 # Node ID afc8ac7001ee8f9f08c5d311207df123cdda3ba7 # Parent 2589cceebca1c41d4228c6eebd4b4a6d348fa936 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 diff -r 2589cceebca1 -r afc8ac7001ee client/src/components/gauge/HydrologicalConditions.vue --- 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") diff -r 2589cceebca1 -r afc8ac7001ee client/src/components/gauge/Waterlevel.vue --- 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")