Changes between Version 22 and Version 23 of VisualizationPlugin


Ignore:
Timestamp:
Jan 3, 2012, 1:30:18 AM (12 years ago)
Author:
Rob Guttman
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • VisualizationPlugin

    v22 v23  
    6161
    6262=== 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:
     63The 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}}}:
    6464{{{
    6565[viz]
     
    131131}}}
    132132
    133 The above will add a burndown chart to your milestone pages just above the stats drilldown section:
     133The above will add a burndown chart to your milestone pages:
    134134
    135135[[Image(burndown.png)]]
    136136
    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.
     137In 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.
    138138
    139139See 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 ===
     142As 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
     149To 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).
    140150
    141151