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