Aggregate

Aggregate

new Aggregate()

The Aggregate class describes how to aggregate data, as described by a Facet into a single value. For example, you can sum or average over numbers, or count the number of different labels.

Source:

Extends

Members

(static) facetId :string

The ID of the facet to aggregate over

Type:
  • string
Source:

(static) normalization :string

Normalization:

  • none data in same units as the original data
  • relative data is in percentages of the total; for subgroups in percentage of the parent group
Type:
  • string
Source:

(static) operation :string

Operation:

  • count count the number of elements in the group
  • sum sum the elements in the group
  • average take the average of the elements in the group
Type:
  • string
Source:

(static) rank :number

When part of a aggregates, this deterimines the ordering

Type:
  • number
Source: