Changes between Version 23 and Version 24 of TicketChartsMacro


Ignore:
Timestamp:
May 15, 2015, 8:48:40 PM (9 years ago)
Author:
figaro
Comment:

Cosmetic changes

Legend:

Unmodified
Added
Removed
Modified
  • TicketChartsMacro

    v23 v24  
    55== Description
    66
    7 Make various types of charts regarding the number of tickets using Open Flash Charts.
    8 Chart types:
     7This macro allows the creation of charts on tickets statistics. It uses [http://teethgrinder.co.uk/open-flash-chart-2/ Open Flash Charts].
     8The chart types supported are:
    99  * Pie charts.
    1010  * Bar charts.
    1111  * Stacked bar charts.
    1212
    13 The charts are created by the parameters that you give to the macro. See the examples below.
     13The charts are configured by the parameters that you pass to the macro. See the examples below.
    1414
    15 All charts are clickable and will link to the query page of the graph.
     15All charts are clickable and will link to the ticket query page of the graph.
    1616
    1717See also TracTicketStatsPlugin, TracMetrixPlugin.
     
    3737== Installation
    3838
    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
    4843[components]
    4944ticketcharts.* = enabled
     
    5247== Configuration
    5348
    54  * The following configuration can appear in `trac.ini` (default values are shown):
    55 {{{
    56 #!ini
     49The following configuration can appear in `trac.ini` (default values are shown):
     50{{{#!ini
    5751[ticket-charts]
    5852height = 300
     
    6054}}}
    6155
    62 == Macro arguments
    63 
    6456The arguments are:
    6557 * 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. Percents 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.
    6860  * '''title''' - Text that will be displayed on the top of the chart.
    6961  * '''query''' - A Trac Query. All the stats will be taken from this query. Examples:
     
    8072== Examples with Snapshots
    8173
    82 Number of tickets per milestone:
     74'''Number of tickets per milestone''':
    8375{{{
    8476[[TicketChart(type = pie, factor = milestone)]]
     
    8678[[Image(pie_by_milestone.png)]]
    8779
    88 Number of tickets per status for milestone4:
     80'''Number of tickets per status for milestone4''':
    8981{{{
    9082[[TicketChart(type = pie, factor = status, query = milestone=milestone4)]]
     
    9284[[Image(pie_by_status.png)]]
    9385
    94 Number of tickets by status and owners:
     86'''Number of tickets by status and owners''':
    9587{{{
    9688[[TicketChart(type = stacked_bars, key = owner, x_axis = status, height = 400, width = 600)]]
     
    9890[[Image(stacked_bars.png)]]
    9991
    100 Number of tickets by status and owner for milestone1:
     92'''Number of tickets by status and owner for milestone1''':
    10193{{{
    10294[[TicketChart(type = stacked_bars, key = owner, x_axis = status, query = milestone=milestone1, title = Tickets by status and owner for milestone1)]]
     
    10496[[Image(stacked_bars_for_milestone1.png)]]
    10597
    106 Number of tickets by owner and type:
     98'''Number of tickets by owner and type''':
    10799{{{
    108100[[TicketChart(type = stacked_bars, key = type, x_axis = owner)]]
     
    110102[[Image(stacked_bars_2.png)]]
    111103
    112 Number of tickets by status for milestone4:
     104'''Number of tickets by status for milestone4''':
    113105{{{
    114106[[TicketChart(type = bars, x_axis = status, query = milestone=milestone4, title = Tickets by status for milestone4)]]