Restore groupBy naming behavior for lineGraphs

pull/10616/head
ebb-tide 2018-04-25 14:53:54 -07:00
parent 3615f13c21
commit d9455a7646
1 changed files with 5 additions and 1 deletions

View File

@ -99,11 +99,15 @@ const constructCells = serieses => {
vals, vals,
})) }))
const tagSet = map(Object.keys(tags), tag => `[${tag}=${tags[tag]}]`)
.sort()
.join('')
const unsortedLabels = map(columns.slice(1), (field, i) => ({ const unsortedLabels = map(columns.slice(1), (field, i) => ({
label: label:
groupByColumns && i <= groupByColumns.length - 1 groupByColumns && i <= groupByColumns.length - 1
? `${field}` ? `${field}`
: `${measurement}.${field}`, : `${measurement}.${field}${tagSet}`,
responseIndex, responseIndex,
seriesIndex, seriesIndex,
})) }))