diff options
author | Mark Wells <mark@freeside.biz> | 2012-03-22 22:08:54 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2012-03-22 22:08:54 -0700 |
commit | 9f97c81b19a3184ea68df32aaea43808b22e10f0 (patch) | |
tree | 91f707ca2c521d513856283bc021d54e2a07d13a /httemplate/graph/elements | |
parent | 69bf020f03918910e0e34260d6e5a9d984f0414d (diff) |
customer signup report, #17050
Diffstat (limited to 'httemplate/graph/elements')
-rw-r--r-- | httemplate/graph/elements/monthly.html | 3 | ||||
-rw-r--r-- | httemplate/graph/elements/report.html | 10 |
2 files changed, 8 insertions, 5 deletions
diff --git a/httemplate/graph/elements/monthly.html b/httemplate/graph/elements/monthly.html index 2fd605d5e..072798c2a 100644 --- a/httemplate/graph/elements/monthly.html +++ b/httemplate/graph/elements/monthly.html @@ -60,7 +60,8 @@ Example: graph_type bottom_total sprintf - disable_money)), + disable_money + chart_options)), ) %> <%init> diff --git a/httemplate/graph/elements/report.html b/httemplate/graph/elements/report.html index 382c41f6c..3600f2c66 100644 --- a/httemplate/graph/elements/report.html +++ b/httemplate/graph/elements/report.html @@ -142,7 +142,7 @@ any delimiter and linked from the elements in @data. % # after that we have to start skipping labels. also remove the dots, since % # they're just a blob at that point. % my $num_labels = scalar(@{ $opt{axis_labels} }); -% my %chart_opt; +% my %chart_opt = %{ $opt{chart_options} || {} }; % if ( $num_labels > 28 ) { % $chart_opt{x_ticks} = 'vertical'; % if ( $num_labels > 60 ) { @@ -212,7 +212,6 @@ any delimiter and linked from the elements in @data. % } % # i for item, e for entry - % my $i = 1; % foreach my $row ( @items ) { % #make a style @@ -225,11 +224,13 @@ any delimiter and linked from the elements in @data. % my $label = shift @row_labels; % $cell[$i] = [ $label ]; % -% my $data_row = shift @data; +% my $data_row = $data[$i-1]; +%# my $data_row = shift @data; % if ( ! $opt{'nototal'} ) { % push @$data_row, sum(@$data_row); % } -% foreach my $entry ( @$data_row ) { +% foreach ( @$data_row ) { +% my $entry = $_; % $entry = $money_char . sprintf($sprintf, $entry); % $entry = $link_prefix . shift(@$links) . "\">$entry</A>" if $link_prefix; % push @{$cell[$i]}, $entry; @@ -242,6 +243,7 @@ any delimiter and linked from the elements in @data. % push @styles, ".i$i { text-align: right; background-color: #f5f6be; }"; % my $links = $opt{'bottom_link'} || []; % my $link_prefix = shift @$links; +% $link_prefix = '<A CLASS="cell" HREF="'.$link_prefix if $link_prefix; % $cell[$i] = [ emt('Total') ]; % for (my $e = 0; $e < $num_entries + 1; $e++) { % my $entry = sum(map { $_->[$e] } @data); |