Prevent unnecessary unzipping of data
parent
ee620229ae
commit
5aab08f568
|
@ -178,11 +178,8 @@ export const timeSeriesToTableGraph = raw => {
|
|||
|
||||
const tableData = map(sortedTimeSeries, ({time, values}) => [time, ...values])
|
||||
const data = tableData.length ? [labels, ...tableData] : [[]]
|
||||
const unzippedData = _.unzip(data)
|
||||
return {
|
||||
data,
|
||||
unzippedData,
|
||||
}
|
||||
|
||||
return {data}
|
||||
}
|
||||
|
||||
export default timeSeriesToDygraph
|
||||
|
|
Loading…
Reference in New Issue