Monday, June 22, 2009

Open Flash Chart 2 - Python API

Version 2.10 of this library/module was re-written from scratch to be much easier to use. It removes the need to call functions when adding chart attributes and makes for an intuitive usage. The library is also significantly smaller than previous versions.

It is hoped that this new library can cater for new attributes added to Open Flash Chart without having to make modifications.

This library does take the liberty of assuming the programmer is *smart*. The library does not do any lexical or grammar checking.

Python instance attributes
Every instance of a class has a collection of attributes that can be set and retrieved. This Python library exploits this fact to give a dot-notation interface to setting Open Flash Chart attributes.

class Chart
The Chart class can be used in multiple situations where a container is required: chart data; custom value; group of elements.

No comments: