v7.3.0

TimelineHistogramGrouping
Mixin

Mixin for TimelineHistogram that provides record grouping support. The class implements an API to work with groups and their members and allows to rollup group members data to their parents.

The groups here are either group headers built with the Group feature or parent nodes built with the TreeGroup feature.

Parent histogram data aggregating

The mixin provides a aggregateHistogramDataForGroups config which enables automatically rolling up child records histogram data to their parents. By default all registered series' values are just summed up on parents level, but that can be changed by providing aggregate config to series:

new TimelineHistogram({
    series : {
        salary : {
           type : 'bar',
           // show maximum value on the parent level
           aggregate : 'max'
        }
    },
    ...
})

Here is the list of supported aggregate values:

  • sum or add - sum of values in the group (default)
  • min - minimum value in the group
  • max - maximum value in the group
  • count - number of child records in the group
  • avg - average of the child values in the group

There are a few hooks allowing customization of the rolling up process: aggregateDataEntry, getDataEntryForAggregating and initAggregatedDataEntry.

See also

No results

Configs

Configs are options you supply in a configuration object when creating an instance of this class
  • When true the component will automatically calculate data for group records based on the groups members data by calling getGroupRecordHistogramData method.

Properties

Properties are getters/setters or publicly accessible variables on this class

Functions

Functions are methods available for calling on the class
    • Resets generated records (parents and links) data cache