summaryrefslogtreecommitdiffstats
path: root/template/en/default/reports/report-pie.png.tmpl
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2013-11-06 15:08:45 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2013-11-06 15:08:45 +0100
commit3e4bed239348cf5af0c70c3ab6315c0f24044959 (patch)
tree7592b7323eed03926695e472ab4bc5b9ccfa198e /template/en/default/reports/report-pie.png.tmpl
parentd8d3c0edd90267e23e4910fe550df4604a5ad75b (diff)
downloadbugzilla-3e4bed239348cf5af0c70c3ab6315c0f24044959.tar.gz
bugzilla-3e4bed239348cf5af0c70c3ab6315c0f24044959.tar.xz
Bug 287682: UTF-8 characters are incorrectly displayed in New Charts and graphical reports
r=wurblzap a=sgreen
Diffstat (limited to 'template/en/default/reports/report-pie.png.tmpl')
-rw-r--r--template/en/default/reports/report-pie.png.tmpl16
1 files changed, 10 insertions, 6 deletions
diff --git a/template/en/default/reports/report-pie.png.tmpl b/template/en/default/reports/report-pie.png.tmpl
index 9d3f16fa3..cc2a1325a 100644
--- a/template/en/default/reports/report-pie.png.tmpl
+++ b/template/en/default/reports/report-pie.png.tmpl
@@ -6,20 +6,24 @@
# defined by the Mozilla Public License, v. 2.0.
#%]
-[% col_field_disp = field_descs.$col_field || col_field %]
-
[% FOR i IN [ 0 .. data.0.0.max ] %]
[% data.0.0.$i = display_value(col_field, data.0.0.$i) %]
[% END %]
[% FILTER null;
USE graph = GD.Graph.pie(width, height);
-
- graph.set(title => col_field_disp,
+
+ graph.set(title => field_descs.$col_field || col_field,
pie_height => 20,
suppress_angle => 2,
start_angle => 180);
-
- graph.plot(data.0).png | stdout(1);
END;
-%]
+
+[% IF Param("font_file") %]
+ [% graph.set_title_font(Param("font_file"), 10);
+ graph.set_value_font(Param("font_file"), 9);
+ %]
+[% END %]
+
+[% graph.plot(data.0).png | stdout(1) %]