SVG: take yrange seriously
git-svn-id: https://svn.fhem.de/fhem/trunk@4315 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -1172,12 +1172,12 @@ SVG_render($$$$$$$$$)
|
|||||||
for my $li (0..$#limit-1) {
|
for my $li (0..$#limit-1) {
|
||||||
my $l = $limit[$li];
|
my $l = $limit[$li];
|
||||||
next if($dh > $l*10);
|
next if($dh > $l*10);
|
||||||
$ma = SVG_doround($hmax{$a}, $l, 1);
|
$ma = $conf{$yra} ? $hmax{$a} : SVG_doround($hmax{$a}, $l, 1);
|
||||||
$mi = SVG_doround($hmin{$a}, $l, 0);
|
$mi = $conf{$yra} ? $hmin{$a} : SVG_doround($hmin{$a}, $l, 0);
|
||||||
if(($ma-$mi)/$l >= 7) { # If more then 7 steps, then choose next
|
if(($ma-$mi)/$l >= 7) { # If more then 7 steps, then choose next
|
||||||
$l = $limit[$li+1];
|
$l = $limit[$li+1];
|
||||||
$ma = SVG_doround($hmax{$a}, $l, 1);
|
$ma = $conf{$yra} ? $hmax{$a} : SVG_doround($hmax{$a}, $l, 1);
|
||||||
$mi = SVG_doround($hmin{$a}, $l, 0);
|
$mi = $conf{$yra} ? $hmin{$a} : SVG_doround($hmin{$a}, $l, 0);
|
||||||
}
|
}
|
||||||
$step = $l;
|
$step = $l;
|
||||||
last;
|
last;
|
||||||
|
|||||||
Reference in New Issue
Block a user