diff --git a/FHEM/98_SVG.pm b/FHEM/98_SVG.pm
index 566ab1a1a..ac2a0cd66 100755
--- a/FHEM/98_SVG.pm
+++ b/FHEM/98_SVG.pm
@@ -339,6 +339,11 @@ SVG_PEdit($$$$)
$ret .= "
".SVG_txt("ytics", "left", $conf{ytics}, 16)." | ";
$ret .= "".SVG_txt("y2tics","right", $conf{y2tics}, 16)." | ";
$ret .= "";
+ if( $conf{xtics} ) {
+ $ret .= " | ";
+ $ret .= SVG_txt("xtics", "x ", $conf{xtics}, 16)." | ";
+ $ret .= " |
";
+ }
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}\"";