Changeset 1758

Show
Ignore:
Timestamp:
12/03/08 11:54:31 (1 month ago)
Author:
ton
Message:

Added title and vertical-title parameters to /rrdgraph (thanks to Jose Luis Martinez)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/CHANGES

    r1747 r1758  
    1111        If realm != local, then hide the Atom feed details on the contact page as this does not use the realm of the contact to authenticate 
    1212        Fixed bug where some data points may not be updated in RRD if RRD::Simple raises an exception 
     13        Added parameters to /rrdgraph of title and vertical-title (thanks to Jose Luis Martinez) 
    1314 
    14152.14.1 17th November 2008 
  • trunk/opsview-web/lib/Opsview/Web/Controller/RRDgraph.pm

    r1651 r1758  
    6262        my $showlegend = $params->{legend}; 
    6363        $showlegend = 1 if not defined $showlegend; 
     64        my $vertical_label = $params->{'vertical-label'}; 
     65        my $title = $params->{'title'}; 
    6466        my $stacked = $params->{stack} || 0; 
    6567        my $type = "LINE1"; 
     
    140142                "--width", $width 
    141143        ]; 
     144        if (defined $vertical_label){ 
     145                push @$rrdoptions, "--vertical-label", $vertical_label; 
     146        } 
     147        if (defined $title){ 
     148                push @$rrdoptions, "--title", $title; 
     149        } 
    142150        foreach my $dsname (sort keys %$ds) { 
    143151                foreach my $hash (@{ $ds->{$dsname} }) {