Add isGroupBy field to series that have groupby

pull/10616/head
ebb-tide 2018-06-08 10:06:24 -07:00
parent 2d03fbc234
commit 0b526d47e2
1 changed files with 3 additions and 1 deletions

View File

@ -89,6 +89,7 @@ const flattenGroupBySeries = (
},
],
responseIndex,
isGroupBy: true,
},
]
@ -142,10 +143,11 @@ const constructResults = (
const constructSerieses = (results: Result[]): Series[] => {
return _.flatten(
fastMap<Result, Series[]>(results, ({series, responseIndex}) =>
fastMap<Result, Series[]>(results, ({series, responseIndex, isGroupBy}) =>
fastMap<TimeSeriesSeries, Series>(series, (s, index) => ({
...s,
responseIndex,
isGroupBy,
seriesIndex: index,
}))
)