| 64 | == Macro arguments == |
| 65 | |
| 66 | Although 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 | {{{ |
| 73 | query = 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 | |