Permalink
Browse files

Modify tickets plot to correctly show horizontal line segments betwee…

…n events.
  • Loading branch information...
1 parent 5879472 commit 733416c194702fa5de9c70d37587b7a2f487b1c7 @mdkendall mdkendall committed Mar 16, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 tracstats/templates/tickets.html
@@ -55,11 +55,11 @@
};
- var d1 = [<py:for each="stat in history">[${stat.x}, ${stat.opened}]<py:if
- test="stat != history[-1]">,</py:if></py:for>];
+ var d1 = [<py:for each="i in range(len(history))">[${history[i].x}, ${history[i].opened}]<py:if
+ test="i != len(history)-1">,[${history[i+1].x}, ${history[i].opened}],</py:if></py:for>];
- var d2 = [<py:for each="stat in history">[${stat.x}, ${stat.accepted}]<py:if
- test="stat != history[-1]">,</py:if></py:for>];
+ var d2 = [<py:for each="i in range(len(history))">[${history[i].x}, ${history[i].accepted}]<py:if
+ test="i != len(history)-1">,[${history[i+1].x}, ${history[i].accepted}],</py:if></py:for>];
$.plot($("#opentickets"), [ { data: d1, label: 'Open' },
{ data: d2, label: 'Accepted' } ], options);

0 comments on commit 733416c

Please sign in to comment.