Fixing poor truncation of graph.

This commit is contained in:
Brad Beattie 2009-04-14 08:08:41 -07:00
parent 5251a4ba3d
commit 30056e7d18
2 changed files with 6 additions and 6 deletions

View File

@ -8,14 +8,14 @@
i = -1
@issue_statuses.each do |issue_status|
points[issue_status.id] = {
"x" => Math.sin(2*Math::PI*i/@issue_statuses.size)*100 + 140,
"y" => Math.cos(2*Math::PI*i/@issue_statuses.size)*100 + 125
"x" => Math.sin(2*Math::PI*i/@issue_statuses.size)*100 + 150,
"y" => Math.cos(2*Math::PI*i/@issue_statuses.size)*100 + 150
}
i -= 1
end
%>
<svg xmlns="http://www.w3.org/2000/svg" version="1.0" width="280" height="270">
<svg xmlns="http://www.w3.org/2000/svg" version="1.0" width="300" height="300">
<g fill-opacity="0.2" stroke-opacity="0.5">
<% @status_changes.each do |status_change| %>
<%

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@ -1,5 +1,5 @@
<h3><%= l(:label_graphs_issue_status_flow) %></h3>
<div style="text-align: center">
<%= tag("embed", :width => "280", :height => 270, :type => "image/svg+xml", :src => url_for(:controller => 'graphs', :action => 'recent_status_changes_graph')) %>
<%= tag("embed", :width => "300", :height => 300, :type => "image/svg+xml", :src => url_for(:controller => 'graphs', :action => 'recent_status_changes_graph')) %>
</div>