From 724f4a57c26bbe4f76f93391b237c568331b04a9 Mon Sep 17 00:00:00 2001 From: Damian <> Date: Sun, 25 Sep 2022 16:29:19 +0000 Subject: [PATCH] 98_DOIF.pm cylinder: fixed position of the chart legend git-svn-id: https://svn.fhem.de/fhem/trunk@26444 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/98_DOIF.pm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/fhem/FHEM/98_DOIF.pm b/fhem/FHEM/98_DOIF.pm index 093132c46..69bf91324 100644 --- a/fhem/FHEM/98_DOIF.pm +++ b/fhem/FHEM/98_DOIF.pm @@ -6244,7 +6244,7 @@ sub cylinder_mode $out.= sprintf('%s',$xBegin,$null+$heightoffset+2,0) if (defined $null); $out.= sprintf('%s',$xBegin,+$heightoffset,$max); - my $yBegin=13+($height-@values*$heightval)/2; + my $yBegin=14+($height-@values*$heightval)/2; my $xValue=$xLeft; my $yValue=$yBegin+$heightval-1; my $val_sum_pos=0; @@ -6276,11 +6276,11 @@ sub cylinder_mode my $yText; if (defined $text and $text ne "") { $out.= sprintf('%s',$xBegin+10,$yBegin+$i*$heightval,hsl_color($color),$text.":"); - } else { - $yValue -=7; - } - if ($heightval == 10) { - $yText=$yValue+7; + if ($heightval == 10) { + $yText=$yValue+7; + } else { + $yText=$yValue-4; + } } else { $yText=$yValue-4; }