summaryrefslogtreecommitdiffstats
path: root/template/en
diff options
context:
space:
mode:
authorgerv%gerv.net <>2002-11-13 17:29:12 +0100
committergerv%gerv.net <>2002-11-13 17:29:12 +0100
commit8cd838d6aa5e4a42e4989aa034f7dc452c0581fb (patch)
treeb4a9cd77466bf1083ff14d0d1973e07784a305f1 /template/en
parent505f37c53861fb92d54eb5e65eac6b0801a43e3d (diff)
downloadbugzilla-8cd838d6aa5e4a42e4989aa034f7dc452c0581fb.tar.gz
bugzilla-8cd838d6aa5e4a42e4989aa034f7dc452c0581fb.tar.xz
Bug 178043 - Make it possible to have vertical x-axis labels. Patch by gerv; r=joel.
Diffstat (limited to 'template/en')
-rw-r--r--template/en/default/reports/report-bar.png.tmpl25
-rw-r--r--template/en/default/reports/report-line.png.tmpl13
-rw-r--r--template/en/default/search/search-report-graph.html.tmpl10
3 files changed, 27 insertions, 21 deletions
diff --git a/template/en/default/reports/report-bar.png.tmpl b/template/en/default/reports/report-bar.png.tmpl
index a3d73d45c..e199f115c 100644
--- a/template/en/default/reports/report-bar.png.tmpl
+++ b/template/en/default/reports/report-bar.png.tmpl
@@ -28,19 +28,20 @@
[% FILTER null;
USE graph = GD.Graph.bars(width, height);
- graph.set(x_label => col_field_disp,
- y_label => y_label,
- y_tick_number => 8,
- y_number_format => "%d",
- x_label_position => 0.5,
- bar_spacing => 8,
- shadow_depth => 4,
- shadowclr => 'dred',
- show_values => 1,
- legend_placement => "RT");
+ graph.set(x_label => col_field_disp,
+ y_label => y_label,
+ y_tick_number => 8,
+ y_number_format => "%d",
+ x_label_position => 0.5,
+ x_labels_vertical => x_labels_vertical,
+ bar_spacing => 8,
+ shadow_depth => 4,
+ shadowclr => 'dred',
+ show_values => 1,
+ legend_placement => "RT");
- graph.set(cumulate => "true",
- show_values => 0) IF cumulate;
+ graph.set(cumulate => "true",
+ show_values => 0) IF cumulate;
# Workaround for the fact that set_legend won't take row_names directly,
# because row_names is an array reference rather than an array.
diff --git a/template/en/default/reports/report-line.png.tmpl b/template/en/default/reports/report-line.png.tmpl
index d0c7b2541..1c84e1bf1 100644
--- a/template/en/default/reports/report-line.png.tmpl
+++ b/template/en/default/reports/report-line.png.tmpl
@@ -33,12 +33,13 @@
[% END %]
[% FILTER null;
- graph.set(x_label => col_field_disp,
- y_label => y_label,
- y_tick_number => 8,
- x_label_position => 0.5,
- legend_placement => "RT",
- line_width => 2);
+ graph.set(x_label => col_field_disp,
+ y_label => y_label,
+ y_tick_number => 8,
+ x_label_position => 0.5,
+ x_labels_vertical => x_labels_vertical,
+ legend_placement => "RT",
+ line_width => 2);
# Workaround for the fact that set_legend won't take row_names directly,
# because row_names is an array reference rather than an array.
diff --git a/template/en/default/search/search-report-graph.html.tmpl b/template/en/default/search/search-report-graph.html.tmpl
index 8280fb0bb..7bcdd365b 100644
--- a/template/en/default/search/search-report-graph.html.tmpl
+++ b/template/en/default/search/search-report-graph.html.tmpl
@@ -87,10 +87,14 @@
<tr>
<td>
</td>
- <td align="center">
+ <td align="left">
<b>Horizontal Axis:</b>
- [% PROCESS select name = 'x_axis_field' %]
- </td>
+ [% PROCESS select name = 'x_axis_field' %]<br>
+ <label for="x_labels_vertical"><b>Vertical labels:</b></label>
+ <input type="checkbox" name="x_labels_vertical" id="x_labels_vertical"
+ value="1"
+ [% " checked" IF default.x_labels_vertical.0 == "1" %]>
+ </td>
<td>
</td>
</tr>