Browse Source

fix

merge-requests/20/merge
vargburz 2 years ago
parent
commit
9d251abab2
  1. 1
      src/models/series.ts
  2. 2
      src/types.ts

1
src/models/series.ts

@ -17,6 +17,7 @@ const SERIE_DEFAULTS = {
visible: true,
yOrientation: yAxisOrientation.LEFT,
datapoints: [],
class: '',
// fields below will be set in "fillDefaults" method
idx: undefined,
color: undefined,

2
src/types.ts

@ -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

Loading…
Cancel
Save