2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-08 19:32:42 +00:00

98_SVG.pm: add xtics (Forum #33266)

git-svn-id: https://svn.fhem.de/fhem/trunk@7844 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2015-02-03 12:41:58 +00:00
parent ee68acee85
commit 571614df98

View File

@ -339,6 +339,11 @@ SVG_PEdit($$$$)
$ret .= "<td>".SVG_txt("ytics", "left", $conf{ytics}, 16)."</td>";
$ret .= "<td>".SVG_txt("y2tics","right", $conf{y2tics}, 16)."</td>";
$ret .= "</tr>";
if( $conf{xtics} ) {
$ret .= "<tr class=\"even\"><td/><td>";
$ret .= SVG_txt("xtics", "x&nbsp;&nbsp;&nbsp;", $conf{xtics}, 16)."</td>";
$ret .= "<td/></tr>";
}
my $max = @{$conf{lType}}+1;
my ($desc, $cnt) = ("Spec", 0);
@ -578,8 +583,9 @@ SVG_WriteGplot($)
push @rows, "set timefmt \"%Y-%m-%d_%H:%M:%S\"";
push @rows, "set xlabel \" \"";
push @rows, "set title '$FW_webArgs{title}'";
push @rows, "set ytics ".$FW_webArgs{ytics}."";
push @rows, "set y2tics ".$FW_webArgs{y2tics}."";
push @rows, "set xtics ".$FW_webArgs{xtics} if($FW_webArgs{xtics});
push @rows, "set ytics ".$FW_webArgs{ytics};
push @rows, "set y2tics ".$FW_webArgs{y2tics};
push @rows, "set grid".($FW_webArgs{gridy} ? " ytics" :"").
($FW_webArgs{gridy2} ? " y2tics":"")."";
push @rows, "set ylabel \"$FW_webArgs{ylabel}\"";