mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
feat(editor): more work on editor components, extracing things and making reusable directives
This commit is contained in:
@@ -190,12 +190,12 @@ function (angular, _, config, kbn, moment, ElasticQueryBuilder) {
|
||||
metric = target.metrics[y];
|
||||
seriesName = parentName;
|
||||
|
||||
if (metric.field) {
|
||||
seriesName += ' ' + metric.field + ' ' + metric.type;
|
||||
value = bucket['m' + y.toString()].value;
|
||||
} else {
|
||||
if (metric.type === 'count') {
|
||||
seriesName += ' count';
|
||||
value = bucket.doc_count;
|
||||
} else {
|
||||
seriesName += ' ' + metric.field + ' ' + metric.type;
|
||||
value = bucket['m' + y.toString()].value;
|
||||
}
|
||||
|
||||
var serie = series[seriesName] = series[seriesName] || {target: seriesName, datapoints: []};
|
||||
|
||||
Reference in New Issue
Block a user