Mercurial > gemma
changeset 4145:6095e95db454
optical adjustments to nowline and now line label
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Fri, 02 Aug 2019 11:11:32 +0200 |
parents | 737e1199800f |
children | f464cbcdf2f2 |
files | client/src/components/gauge/Waterlevel.vue |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/gauge/Waterlevel.vue Fri Aug 02 11:07:29 2019 +0200 +++ b/client/src/components/gauge/Waterlevel.vue Fri Aug 02 11:11:32 2019 +0200 @@ -708,14 +708,17 @@ const nowLabel = selection => { selection.attr( "transform", - `translate(${scale.x(new Date())}, ${scale.y(hi + dy)})` + `translate(${scale.x(new Date())}, ${scale.y(hi + dy * 0.4)})` ); }; // draw in main diagram .append("path") - .datum([{ x: new Date(), y: lo - dy }, { x: new Date(), y: hi + dy }]) + .datum([ + { x: new Date(), y: lo - dy }, + { x: new Date(), y: hi + dy * 0.4 } + ]) .attr("class", "now-line") .attr("d", nowLine); diagram // label