Changes between Version 22 and Version 23 of VisualizationPlugin
- Timestamp:
- Jan 3, 2012, 1:30:18 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
VisualizationPlugin
v22 v23 61 61 62 62 === Existing report === 63 The most basic usage is adding a chart to an existing report - this can be achieved with almost no configuration. Simply list the reports in the {{{[viz]}}} section :63 The most basic usage is adding a chart to an existing report - this can be achieved with almost no configuration. Simply list the reports in the {{{[viz]}}} section in {{{trac.ini}}}: 64 64 {{{ 65 65 [viz] … … 131 131 }}} 132 132 133 The above will add a burndown chart to your milestone pages just above the stats drilldown section:133 The above will add a burndown chart to your milestone pages: 134 134 135 135 [[Image(burndown.png)]] 136 136 137 In the configuration above, the {{{source}}} specifies the data source (in this case the local sumstats plugin) and the {{{selector}}} specifies the DOM element where the graph should be inserted before . You can position graphs anywhere by specifying an appropriate selector.137 In the configuration above, the {{{source}}} specifies the data source (in this case the local sumstats plugin) and the {{{selector}}} specifies the DOM element where the graph should be inserted before (in this case just before the stats drilldown section). You can position graphs anywhere by specifying an appropriate selector. 138 138 139 139 See the [wiki:SumStatsPlugin SumStats plugin] for details on how to configure it for alternative visualizations (e.g., by adding a {{{query}}} to specify the columns to return and their order). 140 141 === Any graph on any page === 142 As described above, you can add a graph or chart to any Trac page including wiki pages. The steps are: 143 1. Create a {{{[viz.<page-url>]}}} section in {{{trac.ini}}} 144 1. Set its {{{source}}} option to the remote data source utl 145 1. (Optional) Add a {{{query}}} option as appropriate for the data source 146 1. Set the {{{selector}}} to the DOM location before which the graph should be inserted 147 1. Configure the {{{type}}} and {{{options}}} as desired 148 149 To embed iGoogle Gadgets in wiki pages using WikiFormatting, you may wish to try [http://pypi.python.org/pypi/TracGViz TracGViz plugin] )I have not yet tried this myself). 140 150 141 151