diff --git a/app/views/graphs/issue_status_flow.html.erb b/app/views/graphs/issue_status_flow.html.erb index e071d29..0783ec0 100644 --- a/app/views/graphs/issue_status_flow.html.erb +++ b/app/views/graphs/issue_status_flow.html.erb @@ -12,11 +12,11 @@ end %> - + <% @status_changes.each do |status_change| %> <% - changes_count = [status_change["changes_count"].to_i,40].min + changes_count = [status_change["changes_count"].to_i+5,35].min old_status = status_change["old_status"].to_i new_status = status_change["new_status"].to_i @@ -29,27 +29,26 @@ atan2 = -Math.atan2(y1-y2,x1-x2) xdiff = Math.sin(atan2)*changes_count ydiff = Math.cos(atan2)*changes_count - - x1a = x1 + xdiff - y1a = y1 + ydiff - x1b = x1 - xdiff - y1b = y1 - ydiff %> " stroke="<%= issue_statuses_by_id[old_status].position > issue_statuses_by_id[new_status].position ? "red" : "green" %>" /> <% end %> - + <% points.each do |status_id, point| %> - " cy="<%= point["y"] %>" r="40" /> + " cy="<%= point["y"] %>" r="35" /> <% end %> - + <% points.each do |status_id, point| %> - " y="<%= point["y"] %>"><%= issue_statuses_by_id[status_id] %> + " y="<%= point["y"] + 3 %>"><%= issue_statuses_by_id[status_id] %> <% end %> \ No newline at end of file