Fixing poor truncation of graph.
This commit is contained in:
parent
5251a4ba3d
commit
30056e7d18
|
@ -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 |
|
@ -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>
|
Loading…
Reference in New Issue
Block a user