our @timeranges= (3600, map { $_*86400 } qw(1 7 28), 13*7+1, 366);
-sub graph_of_group ($$$$$) {
- my ($section, $group, $elem, $basis, $args) = @_;
+sub graph_of_group ($$$$$;$) {
+ my ($section, $group, $elem, $basis, $args, $title) = @_;
$basis->{Args}= $args;
$basis->{Slower}= 0 unless exists $basis->{Slower};
$basis->{TimeRanges} ||= \@timeranges;
+ if (!defined $title) {
+ $title = $group;
+ if (length $elem) { $title.= " $elem"; }
+ }
+ $basis->{Title} = $title;
$graphs{$section,$group,$elem}= $basis;
if (!exists $group_elems{$section,$group}) {
# new group then
s,\<interval/(\d+)\>, $end/$1 ,ge foreach @args;
unshift @args, qw(--end now --start), "end-${end}s";
- my $title= $group;
- if (length $elem) { $title.= " $elem"; }
-
+ my $title = $g->{Title};
$title .= " $g->{Units}" if $g->{Units};
unshift @args, '-t', $title, '-w',$width, '-h',$height;
unshift @args, qw(-a PNG --full-size-mode);