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:
sumoradd- sum of values in the group (default)min- minimum value in the groupmax- maximum value in the groupcount- number of child records in the groupavg- 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
- TimelineHistogram - Histogram view
- TimelineHistogramBase - Base histogram class
Configs
Configs are options you supply in a configuration object when creating an instance of this class-
When
truethe 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-
Identifies an object as an instance of TimelineHistogramGrouping class, or subclass thereof.
-
Identifies an object as an instance of TimelineHistogramGrouping class, or subclass thereof.
Functions
Functions are methods available for calling on the class-
Resets generated records (parents and links) data cache
Source path
Scheduler/view/mixin/TimelineHistogramGrouping.js- Localizable
- Delayable
- Events
- LoadMaskable
- Pluggable
- State
- KeyMap
- RTL
- Toolable
- GridElementEvents
- GridFeatures
- GridResponsive
- GridSelection
- GridState
- GridSubGrids
- RecurringEvents
- TimelineDateMapper
- TimelineDomEvents
- TimelineEventRendering
- TimelineScroll
- TimelineSmoothZoom
- TimelineState
- TimelineViewPresets
- TimelineZoomable