# HG changeset patch # User Thomas Junk # Date 1564737092 -7200 # Node ID 6095e95db454d333c3383961698a72b1ab221195 # Parent 737e1199800fe0b4fffa389d758e6fef5918fe14 optical adjustments to nowline and now line label diff -r 737e1199800f -r 6095e95db454 client/src/components/gauge/Waterlevel.vue --- 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