= Time based graph of ticket statistics = {{{ #!html
Notice: This macro has been merged into the TracTicketStatsPlugin. Please switch to using that plugin if you wish to receive the latest features and bugfixes.
}}} == Description == Generates time based graphs of total, new and closed tickets. It's based on TracTicketStatsPlugin but allows filter the tickets you want to display (e.g. graph only errors) as well as other parameters. See also TicketChartsMacro, TracTicketStatsPlugin, TracMetrixPlugin. == Requirements == * Advanced Argument Parser for Trac Macros (AdvParseArgsPlugin). == Credits == The code it's based on TracTicketStatsPlugin and parts of TicketChartsMacro. The date range parameter it's stolen from Trac trunk (the format for upcoming date field queries). == Bugs/Feature Requests == Existing bugs and feature requests for TicketStatsMacro are [report:9?COMPONENT=TicketStatsMacro here]. If you have any issues, create a [http://trac-hacks.org/newticket?component=TicketStatsMacro&owner=gnarvaja new ticket]. == Download == Download the zipped source from [download:ticketstatsmacro here]. == Source == You can check out TicketStatsMacro from [http://trac-hacks.org/svn/ticketstatsmacro here] using Subversion, or [source:ticketstatsmacro browse the source] with Trac. == Installation == TBD == Macro arguments == * '''height''': graph height, default 500 px. * '''column_width''': default 40 px. * '''res_days''': resolution (in days) for each point in the graph. * '''title''' * '''daterange''': date range specified as "from;to" or just "to". Using 0.12's date field query sintax (http://trac.edgewall.org/wiki/TracQuery?version=20#QueryLanguage) == Example == {{{ [[TicketStats(title = Total tickets last 15 days, height=250,daterange=15d,res_days=1)]] }}} {{{ [[TicketStats(title = Error tickets by week last 3 months, daterange=3m,res_days=7, query=Type='error')]] }}} [[Image(severalGraphs.png, 50%)]] == Recent Changes == [[ChangeLog(ticketstatsmacro, 3)]] == Author/Contributors == '''Author:''' [wiki:gnarvaja] [[BR]] '''Maintainer:''' [wiki:gnarvaja] [[BR]] '''Contributors:''' rjollos