Package bitten :: Module api :: Class IReportChartGenerator

Class IReportChartGenerator

         object --+    
                  |    
trac.core.Interface --+
                      |
                     IReportChartGenerator

Extension point interface for components that generate a chart for a set of reports.
Instance Methods
 
get_supported_categories()
Return a list of strings identifying the types of reports this component supports.
 
generate_chart_data(req, config, category)
Generate the data for a report chart.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

generate_chart_data(req, config, category)

 

Generate the data for a report chart.

This function should return a tuple of the form (template, data), where template is the name of the template to use and data is the data to be passed to the template.

Parameters:
  • req - the request object
  • config (BuildConfig) - the build configuration
  • category (basestring) - the category of reports to include in the chart