Skip to main content

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.

Project details


Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page