|
|
@ -3,7 +3,6 @@ import * as d3 from 'd3'; |
|
|
|
export type Margin = { top: number, right: number, bottom: number, left: number }; |
|
|
|
export type Margin = { top: number, right: number, bottom: number, left: number }; |
|
|
|
export type Timestamp = number; |
|
|
|
export type Timestamp = number; |
|
|
|
|
|
|
|
|
|
|
|
// TODO: Pods can render not only "time" series
|
|
|
|
|
|
|
|
export type Serie = { |
|
|
|
export type Serie = { |
|
|
|
target: string, |
|
|
|
target: string, |
|
|
|
datapoints: [Timestamp, number][], |
|
|
|
datapoints: [Timestamp, number][], |
|
|
@ -11,6 +10,7 @@ export type Serie = { |
|
|
|
alias?: string, |
|
|
|
alias?: string, |
|
|
|
visible?: boolean, |
|
|
|
visible?: boolean, |
|
|
|
color?: string, |
|
|
|
color?: string, |
|
|
|
|
|
|
|
class?: string, |
|
|
|
yOrientation?: yAxisOrientation, |
|
|
|
yOrientation?: yAxisOrientation, |
|
|
|
}; |
|
|
|
}; |
|
|
|
// TODO: move some options to line-chart
|
|
|
|
// TODO: move some options to line-chart
|
|
|
|