[[PageOutline(2-5,Contents,pullout)]] = Plot a graph of a ticket's field change history == Description This macro plots a graph of a ticket's field change history. The open source [http://www.flotcharts.org flot graphing library] is used, which is licensed under the MIT License. The command `[[StatusHistoryChart]]` needs to be added to your wiki page where you want your plot to appear and it can take the following arguments: without arguments:: - Result for report or query, if used on report description. - Bound for milestone, if used on milestone description. - Your last query result. You're Feeling Lucky! args:: - If you want to add a filter, use TracQuery#QueryLanguage. y-axis options:: - Use '''{{{report}}}''' parameter in query for field name to plot. ([13030]) * default: {{{status}}} - Use '''{{{format}}}''' parameter in query for yaxis values. * slash {{{/}}} separated column name or {{{*}}} for wildcard. * two or more value can use in one, ie {{{/new/assigned+accepted AS in progress/closed}}} ([13031]) * default: options for the field, ie {{{new/assigned/accepted/closed/*}}} for status. Examples of how to use this macro: {{{ [[StatusHistoryChart]] [[StatusHistoryChart(format=new/*/closed)]] [[StatusHistoryChart(format=new/accepted+assigned AS in progress/closed)]] [[StatusHistoryChart(owner=$USER&format=new/*/closed)]] [[StatusHistoryChart(type=$TYPE&format=new/*/closed)]] (uses CGI parameter for $TYPE) [[StatusHistoryChart(report=milestone)]] [[StatusHistoryChart(report=owner&format=/somebody/*/matobaa/)]] }}} The output might look as follows: [[Image(StatusHistoryChartMacro.png, border=2)]] == Bugs/Feature Requests Existing bugs and feature requests for StatusHistoryChartMacro are [report:9?COMPONENT=StatusHistoryChartMacro here]. If you have any issues, create a [/newticket?component=StatusHistoryChartMacro new ticket]. [[TicketQuery(component=StatusHistoryChartMacro&group=type,format=progress)]] == Download Download the zipped source from [export:statushistorychartmacro here]. == Source You can check out StatusHistoryChartMacro from [/svn/statushistorychartmacro here] using Subversion, or [source:statushistorychartmacro browse the source] with Trac. == Installation General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page. == Recent Changes [[ChangeLog(statushistorychartmacro, 3)]] == Author/Contributors '''Author:''' [wiki:matobaa] [[BR]] '''Maintainer:''' [[Maintainer]] [[BR]] '''Contributors:'''