Index

Graphing

  1. Graph Styling Functions
  2. Python Helper Functions
  3. Open Flash Chart 2

Within the gateway it is possible to define an XML Dataset that will log eventstates on a periodic basis. The Dataset will create a file in the siteLogRoot directory.

This XML file can be read into KID template page and the data used to create a graph with multiple values. The basic process is:

More details on the process can be found at the Open Flash Chart 2 link at the end of this section. Here's an example graph:


Graph Styling Functions

In order to control the layout and colour of the various data, the following javascript functions are available:

Python Helper Functions

These are used to assist with the server side data processing, to include these in your kid template use:

kid.enable_import()
from WebBrickGateway.templates.graphutil import getvals, getTimes, getDate
    

Open Flash Chart 2

Our graphing is implemented using OpenFlashChart2 which is available under the LGPL license.