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,
}))
const tagSet = map(Object.keys(tags), tag => `[${tag}=${tags[tag]}]`)
.sort()
.join('')
const unsortedLabels = map(columns.slice(1), (field, i) => ({
label:
groupByColumns && i <= groupByColumns.length - 1
? `${field}`
: `${measurement}.${field}`,
: `${measurement}.${field}${tagSet}`,
responseIndex,
seriesIndex,
}))