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:
parent
4b52137509
commit
11dc0f9b81
@ -1695,7 +1695,7 @@ SVG_render($$$$$$$$$$)
|
|||||||
|
|
||||||
my $scale = "y".($axis)."scale"; $scale = "yscale" if( $axis == 1 );
|
my $scale = "y".($axis)."scale"; $scale = "yscale" if( $axis == 1 );
|
||||||
my $log = ""; $log = $conf{$scale} if( $conf{$scale} );
|
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
|
# offsets
|
||||||
my ($align,$display,$cll);
|
my ($align,$display,$cll);
|
||||||
@ -1823,7 +1823,7 @@ SVG_render($$$$$$$$$$)
|
|||||||
SVG_pO "<!-- Warning: No data item $idx defined -->" if(!defined($dxp));
|
SVG_pO "<!-- Warning: No data item $idx defined -->" if(!defined($dxp));
|
||||||
next 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' ) {
|
if( $log eq 'log' ) {
|
||||||
foreach my $i (1..int(@{$dxp})-1) {
|
foreach my $i (1..int(@{$dxp})-1) {
|
||||||
$dyp->[$i] = SVG_log10($dyp->[$i]) / $f_log;
|
$dyp->[$i] = SVG_log10($dyp->[$i]) / $f_log;
|
||||||
|
@ -103,6 +103,9 @@ div.ui-widget-content a {color:#278727!important;}
|
|||||||
.ui-widget { font-family:Arial,sans-serif!important; }
|
.ui-widget { font-family:Arial,sans-serif!important; }
|
||||||
.ui-button-text { font-weight:normal!important; color:#555!important; }
|
.ui-button-text { font-weight:normal!important; color:#555!important; }
|
||||||
|
|
||||||
|
/* UZSU */
|
||||||
|
.ui-button-text-only.ui-state-active { background:#F0F0D8; }
|
||||||
|
|
||||||
#fwmenu {
|
#fwmenu {
|
||||||
position: absolute; z-index:1005;
|
position: absolute; z-index:1005;
|
||||||
text-align:left; max-width:600px;
|
text-align:left; max-width:600px;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user