Group

App.Chart.ExaleadDataType. Group

Transforms data in neutral format to data serie format using a grouping strategy. The objects are grouped by a configured expression. Each unique value gets one label and the amount of objects is the data value. It expects there to be one dataserie in the configuration.

Constructor

new Group()

Methods

(static) go(xlConfig) → {Array}

Example
Returns data on format:
{
    'labels': ['<label>', '<another-label>', ...],
    'series': [{
        'name': '<name>',
        'data': [{
            'value': <value>
            'objectIds': [
                '<object-id>',
                '<another-object-id>',
                ...
            ]
        },{
            ...
        }]
     },{
        ...
    }]
}
Parameters:
Name Type Description
xlConfig Object

exalead result configuration

Returns:

Data series

Type
Array