| 31 | |
| 32 | == Requirements == |
| 33 | * [http://teethgrinder.co.uk/open-flash-chart-2/ Open Flash Charts] installed on your server - preferably [http://www.ofc2dz.com/ OFCDZ] to make the charts clickable. |
| 34 | * Advanced Argument Parser for Trac Macros (AdvParseArgsPlugin). |
| 35 | * Tested only on Trac 0.11.3. |
| 36 | * Tested only on Apache configuration, but with proper configuration (see configuration section) this should work with any http server (including tracd). |
| 37 | |
| 38 | == Installation == |
| 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 | /usr/share/trac/plugins |
| 43 | }}} |
| 44 | * Enable TicketCharts plugin via the WebAdmin interface or by adding the following lines to the [components] section of trac.ini: |
| 45 | {{{ |
| 46 | ticketcharts.* = enabled |
| 47 | }}} |
| 48 | * Install Open Flash Charts 2 '''and its version 2 python bindings''' (everything can be downloaded from [http://teethgrinder.co.uk/open-flash-chart-2/ Open Flash Charts]). |
| 49 | |
| 50 | == Configuration == |
| 51 | * The following configuration should appear in trac.ini: |
| 52 | {{{ |
| 53 | [ticket-charts] |
| 54 | height = 300 |
| 55 | width = 500 |
| 56 | js_dir = /js |
| 57 | json_dir = /js/json |
| 58 | ofc_file = /OFCDZ.swf |
| 59 | }}} |
| 60 | * If this does not appear, default values will be used. |
| 61 | * ''js_dir'', ''jsor_dir'' and ''ofc_file'' are the location '''on the http server''' of the Open Flash Charts files. |
| 62 | * 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]. |