mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
98_DOIF.pm: svg card: decimal Y-scaling fixed
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@24292 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
69521559b8
commit
a6f21b0209
@ -4673,7 +4673,7 @@ sub card
|
|||||||
for (my $i=0;$i<=4;$i++) {
|
for (my $i=0;$i<=4;$i++) {
|
||||||
my $value=($maxPlot-$minPlot)*(1-$i*0.25)+$minPlot;
|
my $value=($maxPlot-$minPlot)*(1-$i*0.25)+$minPlot;
|
||||||
my ($color)= get_color($value,$min,$max,$minColor,$maxColor,$func);
|
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;
|
my $timebeginn=$time-$hours*3600;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user