graph = SVG::Graph::Bar.new(
:height => 300,
- :width => 500,
+ :width => 800,
:fields => fields.reverse,
:stack => :side,
:scale_integers => true,
fields = fields.collect {|c| c.gsub(%r{<.+@.+>}, '') }
graph = SVG::Graph::BarHorizontal.new(
- :height => 300,
- :width => 500,
+ :height => 400,
+ :width => 800,
:fields => fields,
:stack => :side,
:scale_integers => true,
<h2><%= l(:label_statistics) %></h2>\r
\r
-<table width="100%">\r
-<tr><td>\r
-<%= tag("embed", :width => 500, :height => 300, :type => "image/svg+xml", :src => url_for(:controller => 'repositories', :action => 'graph', :id => @project, :graph => "commits_per_month")) %>\r
-</td><td>\r
-<%= tag("embed", :width => 500, :height => 300, :type => "image/svg+xml", :src => url_for(:controller => 'repositories', :action => 'graph', :id => @project, :graph => "commits_per_author")) %>\r
-</td></tr>\r
-</table>\r
-<br />\r
+<p>\r
+<%= tag("embed", :width => 800, :height => 300, :type => "image/svg+xml", :src => url_for(:controller => 'repositories', :action => 'graph', :id => @project, :graph => "commits_per_month")) %>\r
+</p>\r
+<p>\r
+<%= tag("embed", :width => 800, :height => 400, :type => "image/svg+xml", :src => url_for(:controller => 'repositories', :action => 'graph', :id => @project, :graph => "commits_per_author")) %>\r
+</p>\r
+\r
<p><%= link_to l(:button_back), :action => 'show', :id => @project %></p>\r
\r
<% html_title(l(:label_repository), l(:label_statistics)) -%>\r