Changes between Version 23 and Version 24 of TicketChartsMacro
- Timestamp:
- May 15, 2015, 8:48:40 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TicketChartsMacro
v23 v24 5 5 == Description 6 6 7 Make various types of charts regarding the number of tickets using Open Flash Charts.8 Chart types:7 This macro allows the creation of charts on tickets statistics. It uses [http://teethgrinder.co.uk/open-flash-chart-2/ Open Flash Charts]. 8 The chart types supported are: 9 9 * Pie charts. 10 10 * Bar charts. 11 11 * Stacked bar charts. 12 12 13 The charts are c reated by the parameters that you giveto the macro. See the examples below.13 The charts are configured by the parameters that you pass to the macro. See the examples below. 14 14 15 All charts are clickable and will link to the query page of the graph.15 All charts are clickable and will link to the ticket query page of the graph. 16 16 17 17 See also TracTicketStatsPlugin, TracMetrixPlugin. … … 37 37 == Installation 38 38 39 * Download the source. 40 * Copy the file !TicketCharts.py to your project's plugins directory or to the global plugins directory, which is usually in: 41 {{{ 42 #!sh 43 /usr/share/trac/plugins 44 }}} 45 * Enable !TicketCharts plugin via the WebAdmin interface or by adding the following lines to the [components] section of your `trac.ini` file: 46 {{{ 47 #!ini 39 1. Download the source. 40 1. Copy the file !TicketCharts.py to your project's plugins directory or to the global plugins directory, which is usually inc`/usr/share/trac/plugins`. 41 1. Enable !TicketCharts plugin via the WebAdmin interface or by adding the following lines to the [components] section of your `trac.ini` file: 42 {{{#!ini 48 43 [components] 49 44 ticketcharts.* = enabled … … 52 47 == Configuration 53 48 54 * The following configuration can appear in `trac.ini` (default values are shown): 55 {{{ 56 #!ini 49 The following configuration can appear in `trac.ini` (default values are shown): 50 {{{#!ini 57 51 [ticket-charts] 58 52 height = 300 … … 60 54 }}} 61 55 62 == Macro arguments63 64 56 The arguments are: 65 57 * Arguments for all types of graphs: 66 * '''type''' - The type of the graph. Can be pie, bars or stacked_bars.67 * '''height''', '''width''' - The height and width of the graph, in pixels. Percent s will not work. If not specified, the values from trac.ini are taken (and if those aren't specified, then other default values are used).58 * '''type''' - The type of the graph. Can be `pie`, `bars` or `stacked_bars`. 59 * '''height''', '''width''' - The height and width of the graph, in pixels. Percentages will not work. If not specified, the values from trac.ini are taken, and if those aren't specified, then other default values are used. 68 60 * '''title''' - Text that will be displayed on the top of the chart. 69 61 * '''query''' - A Trac Query. All the stats will be taken from this query. Examples: … … 80 72 == Examples with Snapshots 81 73 82 Number of tickets per milestone:74 '''Number of tickets per milestone''': 83 75 {{{ 84 76 [[TicketChart(type = pie, factor = milestone)]] … … 86 78 [[Image(pie_by_milestone.png)]] 87 79 88 Number of tickets per status for milestone4:80 '''Number of tickets per status for milestone4''': 89 81 {{{ 90 82 [[TicketChart(type = pie, factor = status, query = milestone=milestone4)]] … … 92 84 [[Image(pie_by_status.png)]] 93 85 94 Number of tickets by status and owners:86 '''Number of tickets by status and owners''': 95 87 {{{ 96 88 [[TicketChart(type = stacked_bars, key = owner, x_axis = status, height = 400, width = 600)]] … … 98 90 [[Image(stacked_bars.png)]] 99 91 100 Number of tickets by status and owner for milestone1:92 '''Number of tickets by status and owner for milestone1''': 101 93 {{{ 102 94 [[TicketChart(type = stacked_bars, key = owner, x_axis = status, query = milestone=milestone1, title = Tickets by status and owner for milestone1)]] … … 104 96 [[Image(stacked_bars_for_milestone1.png)]] 105 97 106 Number of tickets by owner and type:98 '''Number of tickets by owner and type''': 107 99 {{{ 108 100 [[TicketChart(type = stacked_bars, key = type, x_axis = owner)]] … … 110 102 [[Image(stacked_bars_2.png)]] 111 103 112 Number of tickets by status for milestone4:104 '''Number of tickets by status for milestone4''': 113 105 {{{ 114 106 [[TicketChart(type = bars, x_axis = status, query = milestone=milestone4, title = Tickets by status for milestone4)]]