export TimeSeries to type file
parent
15fb883c5f
commit
76fc779467
|
@ -1,4 +1,4 @@
|
||||||
export type TimeSeriesValue = string | number | Date | null
|
export type TimeSeriesValue = string | number | null
|
||||||
|
|
||||||
export interface TimeSeriesSeries {
|
export interface TimeSeriesSeries {
|
||||||
name: string
|
name: string
|
||||||
|
@ -30,6 +30,6 @@ export interface TimeSeriesServerResponse {
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface TimeSeries {
|
export interface TimeSeries {
|
||||||
time: TimeSeriesValue[]
|
time: TimeSeriesValue
|
||||||
values: TimeSeriesValue[][]
|
values: TimeSeriesValue[]
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,6 +14,7 @@ import {
|
||||||
TimeSeriesSeries,
|
TimeSeriesSeries,
|
||||||
TimeSeriesValue,
|
TimeSeriesValue,
|
||||||
TimeSeriesSuccessfulResult,
|
TimeSeriesSuccessfulResult,
|
||||||
|
TimeSeries,
|
||||||
} from 'src/types/series'
|
} from 'src/types/series'
|
||||||
import {get} from 'src/utils/wrappers'
|
import {get} from 'src/utils/wrappers'
|
||||||
|
|
||||||
|
@ -49,11 +50,6 @@ interface Label {
|
||||||
responseIndex: number
|
responseIndex: number
|
||||||
}
|
}
|
||||||
|
|
||||||
interface TimeSeries {
|
|
||||||
time: TimeSeriesValue
|
|
||||||
values: TimeSeriesValue[]
|
|
||||||
}
|
|
||||||
|
|
||||||
const flattenGroupBySeries = (
|
const flattenGroupBySeries = (
|
||||||
results: TimeSeriesSuccessfulResult[],
|
results: TimeSeriesSuccessfulResult[],
|
||||||
responseIndex: number,
|
responseIndex: number,
|
||||||
|
|
Loading…
Reference in New Issue