2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-01 15:44:52 +00:00

98_SVG.pm: logscale patch (Forum #53487)

git-svn-id: https://svn.fhem.de/fhem/trunk@11506 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2016-05-23 19:07:25 +00:00
parent 4b52137509
commit 11dc0f9b81
2 changed files with 5 additions and 2 deletions

View File

@ -1695,7 +1695,7 @@ SVG_render($$$$$$$$$$)
my $scale = "y".($axis)."scale"; $scale = "yscale" if( $axis == 1 );
my $log = ""; $log = $conf{$scale} if( $conf{$scale} );
my $f_log = $hmax{$a} ? (SVG_log10($hmax{$a}) / $hmax{$a}) : 1;
my $f_log = int($hmax{$a}) ? (SVG_log10($hmax{$a}) / $hmax{$a}) : 1;
# offsets
my ($align,$display,$cll);
@ -1823,7 +1823,7 @@ SVG_render($$$$$$$$$$)
SVG_pO "<!-- Warning: No data item $idx defined -->" if(!defined($dxp));
next if(!defined($dxp));
my $f_log = $hmax{$a} ? (SVG_log10($hmax{$a}) / $hmax{$a}) : 1;
my $f_log = int($hmax{$a}) ? (SVG_log10($hmax{$a}) / $hmax{$a}) : 1;
if( $log eq 'log' ) {
foreach my $i (1..int(@{$dxp})-1) {
$dyp->[$i] = SVG_log10($dyp->[$i]) / $f_log;

View File

@ -103,6 +103,9 @@ div.ui-widget-content a {color:#278727!important;}
.ui-widget { font-family:Arial,sans-serif!important; }
.ui-button-text { font-weight:normal!important; color:#555!important; }
/* UZSU */
.ui-button-text-only.ui-state-active { background:#F0F0D8; }
#fwmenu {
position: absolute; z-index:1005;
text-align:left; max-width:600px;