From 9d251abab2e5d47fb02c3609e4f081cafb383bcb Mon Sep 17 00:00:00 2001 From: vargburz Date: Tue, 24 May 2022 16:23:50 +0300 Subject: [PATCH] fix --- src/models/series.ts | 1 + src/types.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/models/series.ts b/src/models/series.ts index 16ca69b..a5be800 100644 --- a/src/models/series.ts +++ b/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, diff --git a/src/types.ts b/src/types.ts index 11dfbac..ce17698 100644 --- a/src/types.ts +++ b/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