Closed codythegreat closed 3 years ago
Actually I realized that I can achieve this by doing the following:
var aggMap = {
'agg1': {
aggType: 'Sum',
arguments: ['VALUE_1'],
name: 'NAME_1',
varName :'a',
hidden : true,
renderEnhancement : 'heatmap'
},
. . .
'aggN': {
aggType: 'Sum',
arguments: ['VALUE_N'],
name: 'NAME_N',
varName :'b',
hidden : true,
renderEnhancement : 'heatmap'
},
};
So everything in aggMap
is hidden, then I can define all of my columns inside of derivedAggregates
in whatever order I like:
var derivedAggregations = [
{
name : 'NAME_1',
description : 'DESC_1',
expression : 'EXPRESSION',
renderEnhancement : 'heatmap'
},
. . .
{
name : 'NAME_N',
description : 'DESC_N',
expression : 'EXPRESSION',
renderEnhancement : 'heatmap'
},
]
Hopefully this can help anyone who wants to achieve similar functionality.
Is it possible to specify the order of aggregates so that you could do something like the following?:
key: Agg = aggregate, Der = derived aggregate
Currently I only know that I can do the following:
If this is possible, but not currently implemented, then perhaps I could work on adding this functionality.