This package extends the templating system of OpenACS by providing another builder next to the list and form builder. The diagram builder is very similar to the list builder. Two differences are important though: The multirow to be used must me defined bofore template::diagram::create is called since the column names are retrieved dynamically.
The rendering is taking place in the templates defined under resources/diagram/..
. Currently we support the following types: pie, curve and cockpit. You can customize the way they render the diagrams by editing the corresponding templates or adding new ones. Once a template is created you simply pass its name with the -template switch of template::diagram::create.
You need to run the
diagram-create.sql to view the examples below. It will create a table with dummy data. You can remove the table again using
A detailed example is given in the API Browser. This page also contains examples for the three diagram types "pie", "curve" and "cockpit". As you can see the diagrams are beautifully inserted inside the page flow. Also CSV-Export is possible.CSV
template::diagram::set_borderswhich nead a clean up. Maybe moving these information into the templates would be best.
to_char(mydate, 'YYYY,MM,DD[,HH24][,MI][,SS]')in your sql query to return a meaningful value. As you can see some elements are optional. For details please view the
Related Object Types
Related PackagesRelated Modules