Aggregate
public struct Aggregate : Transform
Specification of aggregate operation on trace data.
-
Determines whether this aggregate transform is enabled or disabled.
Declaration
Swift
public var enabled: Bool? -
Sets the grouping target to which the aggregation is applied.
Data points with matching group values will be coalesced into one point, using the supplied aggregation functions to reduce data in other data arrays. If a string,
groupsis assumed to be a reference to a data array in the parent trace object. To aggregate by nested variables, use . to access them. For example, setgroupsto marker.color to aggregate about the marker color array. If an array,groupsis itself the data array by which we aggregate.Declaration
Swift
public var groups: Data<String>? -
Undocumented
See moreDeclaration
Swift
public struct Aggregation : Encodable -
Undocumented
Declaration
Swift
public var aggregations: [Aggregation]? -
Creates
Aggregateobject with specified properties.Declaration
Swift
public init(enabled: Bool? = nil, groups: Data<String>? = nil, aggregations: [Aggregation]? = nil)Parameters
enabledDetermines whether this aggregate transform is enabled or disabled.
groupsSets the grouping target to which the aggregation is applied.
aggregations
View on GitHub
Install in Dash
Aggregate Structure Reference