diff --git a/fhem/FHEM/98_SVG.pm b/fhem/FHEM/98_SVG.pm index d3b773f65..c08b352e3 100644 --- a/fhem/FHEM/98_SVG.pm +++ b/fhem/FHEM/98_SVG.pm @@ -69,6 +69,7 @@ SVG_Initialize($) $hash->{DefFn} = "SVG_Define"; no warnings 'qw'; my @attrList = qw( + axis_width captionLeft:1,0" captionPos:right,left,auto endPlotNow:1,0 @@ -1444,7 +1445,7 @@ SVG_render($$$$$$$$$$) $use_right_axis = $nr_right_axis if( !defined($use_right_axis) ); my $th = 16; # "Font" height - my $axis_width = ($SVG_ss ? 2 : 3)*$th; + my $axis_width = AttrVal($name, "axis_width", ($SVG_ss ? 2 : 3)*$th); my ($x, $y) = ($axis_width*$nr_left_axis, 1.2*$th); # Rect offset ###################### @@ -2621,6 +2622,27 @@ plotAsPng(@) Attributes