Dump a dynts.TimeSeries instance into different formats. Let’s say we have a time series object ts:
s = ts.dump('flot', **kwargs)
will create a dynts.web.flot.MultiPlot instance for producing nice looking javascript graphs with flot.
check dynts.DynData.dump.
To register new way of formatting timeseries:
from dynts import Formatters
Formatters['newformat'] = your_formatting_function
where your_formatting_function takes the ts as positional input and any other key-value parameters.
You can use the new function:
ts.dump('newformat')
There are two JSON formatters: flot and vba. They both return JSON strings but in different formats.
The flot format is used by the ecoplot jQuery plugin in dynts.web module. The dump function accepts the following key-value parameters:
The flot format is used to send JSON to VBA for displaying in an excel Worksheet.