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:
parent
ee68acee85
commit
571614df98
@ -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 ", $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}\"";
|
||||
|
Loading…
x
Reference in New Issue
Block a user