| 26 | This plugin can be used to visualize the progress of a project by seeing the rate of tickets being created vs. tickets being closed. Graphs can be customized. |
| 27 | |
| 28 | The macro allows graphs to be inserted within wiki markup. |
| 29 | |
| 30 | {{{ |
| 31 | [[TicketStats(title = Total tickets last 15 days, height=250, daterange=15d, res_days=1)]] |
| 32 | }}} |
| 33 | |
| 34 | {{{ |
| 35 | [[TicketStats(title = Error tickets by week last 3 months, daterange=3m, res_days=7, query=Type='error')]] |
| 36 | }}} |
| 37 | |
| 38 | The macro's arguments are: |
| 39 | * '''title''': caption to your graph |
| 40 | * '''height''': graph height, default 500 px. |
| 41 | * '''column_width''': default 40 px. |
| 42 | * '''daterange''': date range specified as "from;to" or just "to". Using Trac's 0.12 date field query syntax (trac:wiki:TracQuery?version=20#QueryLanguage). |
| 43 | * '''res_days''': resolution in days for each point in the graph. |
| 44 | |
| 45 | Version 2.1 of this plugin looks as follows: |
| 46 | |
| 47 | [[Image(screenshot01.png, 80%)]] |
| 48 | |
67 | | |
68 | | == Examples |
69 | | |
70 | | This plugin can be used to visualize the progress of a project by seeing the rate of tickets being created vs. tickets being closed. Graphs can be customized. |
71 | | |
72 | | The macro allows graphs to be inserted within wiki markup. |
73 | | |
74 | | {{{ |
75 | | [[TicketStats(title = Total tickets last 15 days, height=250, daterange=15d, res_days=1)]] |
76 | | }}} |
77 | | |
78 | | {{{ |
79 | | [[TicketStats(title = Error tickets by week last 3 months, daterange=3m, res_days=7, query=Type='error')]] |
80 | | }}} |
81 | | |
82 | | The macro's arguments are: |
83 | | * '''title''': caption to your graph |
84 | | * '''height''': graph height, default 500 px. |
85 | | * '''column_width''': default 40 px. |
86 | | * '''daterange''': date range specified as "from;to" or just "to". Using Trac's 0.12 date field query syntax (trac:wiki:TracQuery?version=20#QueryLanguage). |
87 | | * '''res_days''': resolution in days for each point in the graph. |