Changes between Version 4 and Version 5 of TicketChartsMacro


Ignore:
Timestamp:
Apr 17, 2009, 6:17:05 PM (6 years ago)
Author:
aviram
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TicketChartsMacro

    v4 v5  
    6262  * As you can see, the default '''ofc_file''' value is OFCDZ.swf, which is another implementation of Open Flash Charts, that make the bar charts clickable. You can download it from [http://www.ofc2dz.com/ OFCDZ].
    6363
     64== Macro arguments ==
     65
     66Although I believe the examples show it all, I'll write here the arguments:
     67  * Arguments for all types of graphs:
     68      * '''type''' - The type of the graph. Can be pie, bars or stacked_bars.
     69      * '''height''', '''width''' - The height and width of the graph, in pixels. Percents will not work.
     70      * '''title''' - Text that will be displayed on the top of the chart.
     71      * '''query''' - A Trac Query. All the stats will be taken from this query. It is important that everything in the query's parmeters will be under quotes. Examples:
     72        {{{
     73query = milestone="my_milestone"&owner="aviram"|"danny"
     74        }}}
     75      * '''ofc_file''', '''js_dir''', '''json_dir''' - Same as the variables in the macro's configuration. If these are specified, the configuration is ignored.
     76  * Arguments for '''pie''' graphs:
     77      * '''factor''' - The name of the field by which the stats will be formed.
     78  * Arguments for '''bar''' graphs:
     79      * '''x_axis''' - The name of the field by which the stats will be formed (The X Axis values).
     80  * Arguments for '''stacked bars''' graphs:
     81      * '''x_axis''' - The name of the field by which the stats will be formed (The X Axis values).
     82      * '''key''' - The name of the field by which the chart's columns are divided.
     83
    6484== Examples with Snapshots ==
    6585Number of tickets per milestone: