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
This commit is contained in:
@@ -6244,7 +6244,7 @@ sub cylinder_mode
|
|||||||
$out.= sprintf('<text x="%d" y="%d" style="fill:white; font-size:10px">%s</text>',$xBegin,$null+$heightoffset+2,0) if (defined $null);
|
$out.= sprintf('<text x="%d" y="%d" style="fill:white; font-size:10px">%s</text>',$xBegin,$null+$heightoffset+2,0) if (defined $null);
|
||||||
$out.= sprintf('<text x="%d" y="%d" style="fill:white; font-size:10px">%s</text>',$xBegin,+$heightoffset,$max);
|
$out.= sprintf('<text x="%d" y="%d" style="fill:white; font-size:10px">%s</text>',$xBegin,+$heightoffset,$max);
|
||||||
|
|
||||||
my $yBegin=13+($height-@values*$heightval)/2;
|
my $yBegin=14+($height-@values*$heightval)/2;
|
||||||
my $xValue=$xLeft;
|
my $xValue=$xLeft;
|
||||||
my $yValue=$yBegin+$heightval-1;
|
my $yValue=$yBegin+$heightval-1;
|
||||||
my $val_sum_pos=0;
|
my $val_sum_pos=0;
|
||||||
@@ -6276,11 +6276,11 @@ sub cylinder_mode
|
|||||||
my $yText;
|
my $yText;
|
||||||
if (defined $text and $text ne "") {
|
if (defined $text and $text ne "") {
|
||||||
$out.= sprintf('<text x="%d" y="%d" style="fill:%s; font-size:12px">%s</text>',$xBegin+10,$yBegin+$i*$heightval,hsl_color($color),$text.":");
|
$out.= sprintf('<text x="%d" y="%d" style="fill:%s; font-size:12px">%s</text>',$xBegin+10,$yBegin+$i*$heightval,hsl_color($color),$text.":");
|
||||||
} else {
|
if ($heightval == 10) {
|
||||||
$yValue -=7;
|
$yText=$yValue+7;
|
||||||
}
|
} else {
|
||||||
if ($heightval == 10) {
|
$yText=$yValue-4;
|
||||||
$yText=$yValue+7;
|
}
|
||||||
} else {
|
} else {
|
||||||
$yText=$yValue-4;
|
$yText=$yValue-4;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user