StatKey
Description
A StatKey
is an enum that represents the type of a StatDefinition
.
Possible values
Name |
Type |
Value |
Description |
---|---|---|---|
Average |
string |
"avg" |
The |
Count |
string |
"cnt" |
The |
Maximum |
string |
"max" |
The |
Median |
string |
"med" |
The |
Minimum |
string |
"min" |
The |
StandardDeviation |
string |
"std" |
The |
Sum |
string |
"sum" |
The |
Variance |
string |
"var" |
The |
Example
Used as a type to identify the StatDefinition
to use on a specific field.
const statDefinitions = {
minGoalsStat: { type: "min", field: "goals" }
};
const groupConfigurations = {
goals: {
stats: [{ statDefinitionKey: "minGoalsStat" }]
}
};
const options = { experimental: { statDefinitions }, groupConfigurations };
const datagrid = new Xceed.DataGrid("containerId", options);
The "minGoalsStat" StatDefinition
identifier must be used with the statDefinitionKey of a StatConfiguration
in a GroupConfiguration
to calculate the minimum stat of field "goals" for dataItems
when grouped by "goals". The StatDefinitionCollection
and GroupConfigurationCollection
must be set in the DataGridOptions
.