Makes it easy to convert Python data structuresto JSON strings suitable for flot series and options
Project description
Utilities for generating flot graphs within Python.
For example:
>>> import pyflot >>> f = pyflot.Flot() >>> f.add_series([(1, 1), (2, 2), (3, 3)]) >>> print f.series_json [{"data": [[1, 1], [2, 2], [3, 3]]}]
In this simple example the series_json is a JSON string in the format expected by flot.