PPF All Data Widget

Access raw data set output for building custom widgets.

Overview

The All Data widget provides all data for a data set in raw format. All preset widgets use data in raw format internally, so providing it directly allows the creation of custom widgets and visualizations.

Full Example

var ppf_widgets = {
    example_alldata: {
        type: 5,
        funcs: ['alldata(||data.speeddata||)'],
        depend: [
            ['endofmonth', 'tuesday'],
            ['endofweek', 'wednesday']
        ]
    }
}

Defining an All Data Widget

KeyDescription
type Required. Must be 5 for an All Data widget.
funcs

Required. A JavaScript function that receives the raw data. The format for requesting all data is ||data.datasetname||.

For example, ||data.speeddata|| gets all data for the data set named "speeddata" and passes it to a function named alldata (which you must create):

funcs: ['alldata(||data.speeddata||)']

See PPF Data Sets for more on data set names.

depend Widget dependencies. See dependency information.