98_SVG.pm: activate the hour ticks (Forum #33742)

git-svn-id: https://svn.fhem.de/fhem/trunk@7981 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2015-02-14 17:29:46 +00:00
parent a1f01af83f
commit 1f64cc2b6d

View File

@@ -1487,8 +1487,8 @@ SVG_render($$$$$$$$$$)
$step /= 2 if( $step > 10 );
for(my $i = $mi; $i <= $ma; $i += $step) {
$off1 = int($x+($i-$xmin)*$xmul);
SVG_pO "<polyline points=\"$off1,$y $off1,$off2\"/>";
SVG_pO "<polyline points=\"$off1,$off3 $off1,$off4\"/>";
SVG_pO "<polyline class='SVGplot' points='$off1,$y $off1,$off2'/>";
SVG_pO "<polyline class='SVGplot' points='$off1,$off3 $off1,$off4'/>";
}
}
@@ -1497,8 +1497,8 @@ SVG_render($$$$$$$$$$)
for(my $i = $fromsec+$initoffset; $i < $tosec; $i += $tstep) {
$i = SVG_time_align($i,$aligntics);
$off1 = int($x+($i-$fromsec)*$tmul);
SVG_pO "<polyline points=\"$off1,$y $off1,$off2\"/>";
SVG_pO "<polyline points=\"$off1,$off3 $off1,$off4\"/>";
SVG_pO "<polyline class='SVGplot' points='$off1,$y $off1,$off2'/>";
SVG_pO "<polyline class='SVGplot' points='$off1,$off3 $off1,$off4'/>";
}
}