2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-04 05:16:45 +00:00

98_DOIF.pm: svg card: decimal Y-scaling fixed

git-svn-id: https://svn.fhem.de/fhem/trunk@24292 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Damian 2021-04-20 21:08:11 +00:00
parent f1e819824b
commit 4d90a5f9c6

View File

@ -4673,7 +4673,7 @@ sub card
for (my $i=0;$i<=4;$i++) {
my $value=($maxPlot-$minPlot)*(1-$i*0.25)+$minPlot;
my ($color)= get_color($value,$min,$max,$minColor,$maxColor,$func);
$out.= sprintf('<text text-anchor="end" x="-2.5" y="%s" style="fill:%s;font-size:7px;%s">%s</text>',$i*12.5+2,color($color,$lmm),"",sprintf(($scaling ? $format : "%s"),$value));
$out.= sprintf('<text text-anchor="end" x="-2.5" y="%s" style="fill:%s;font-size:7px;%s">%s</text>',$i*12.5+2,color($color,$lmm),"",sprintf($format,$value));
}
my $timebeginn=$time-$hours*3600;