diff --git a/src/controllers/analytic_controller.ts b/src/controllers/analytic_controller.ts index 346a9db..8348f9e 100644 --- a/src/controllers/analytic_controller.ts +++ b/src/controllers/analytic_controller.ts @@ -34,9 +34,9 @@ export class AnalyticController { private _newAnalyticUnit: AnalyticUnit = null; private _creatingNewAnalyticType: boolean = false; private _savingNewAnalyticUnit: boolean = false; - private _tempIdCounted = -1; - private _graphLocked = false; - private _currentColorIndex = 0; + private _tempIdCounted: number = -1; + private _graphLocked: boolean = false; + private _currentColorIndex: number = 0; private _statusRunners: Set = new Set(); diff --git a/src/models/analytic_unit.ts b/src/models/analytic_unit.ts index 6d22321..301e19a 100644 --- a/src/models/analytic_unit.ts +++ b/src/models/analytic_unit.ts @@ -3,9 +3,7 @@ import { SegmentArray } from './segment_array'; import { Segment, SegmentId } from './segment'; import { Metric } from './metric'; -import { ANALYTIC_UNIT_COLORS } from '../colors'; import _ from 'lodash'; -import { AnalyticController } from 'controllers/analytic_controller'; export type AnalyticSegmentPair = { anomalyType: AnalyticUnit, segment: AnalyticSegment }; @@ -31,7 +29,6 @@ export class AnalyticUnit { private _status: string; private _error: string; private _metric: Metric; - private _color: string; private _alertEnabled?: boolean;