feat(tablepanel): completed work on time series aggregations table transform, #3219

This commit is contained in:
Torkel Ödegaard 2015-11-18 17:05:21 +01:00
parent f0087c93b8
commit aad824a562
2 changed files with 4 additions and 0 deletions

View File

@ -143,6 +143,7 @@ class TimeSeries {
} }
} }
this.stats.count = result.length;
return result; return result;
} }

View File

@ -78,6 +78,9 @@ transformers['timeseries_aggregations'] = {
{text: 'Avg', value: 'avg'}, {text: 'Avg', value: 'avg'},
{text: 'Min', value: 'min'}, {text: 'Min', value: 'min'},
{text: 'Max', value: 'max'}, {text: 'Max', value: 'max'},
{text: 'Total', value: 'total'},
{text: 'Current', value: 'current'},
{text: 'Count', value: 'count'},
]; ];
}, },
transform: function(data, panel, model) { transform: function(data, panel, model) {