/** Core */ import moment from "moment"; import "moment-duration-format/lib/moment-duration-format"; /** * Real time chart serie type */ export declare enum RealTimeChartSerieType { /** * Chart serie will be just a line */ Line = 0, /** * Chart serie will be an area that will go from the serie line to the xAxis */ Area = 1 } /** * Real time chart serie configuration */ export interface RealTimeChartSerie { /** * Serie name that will be displayed in the labels */ name: string; /** * Serie chart type */ type: RealTimeChartSerieType; /** * Serie color */ color: string; } /** * Real time chart serie configuration */ export interface RealTimeChartSerieColor { /** * Serie color */ original: string; /** * Serie color fadded to 10% */ fadded10p: string; /** * Serie color fadded to 70% */ fadded70p: string; /** * Text color - used in the last values labels */ textColor: string; } /** * Real time chart point */ export interface RealTimeChartPoint { /** * time axis value */ x: moment.Moment; /** * values axis value */ y: number; } /** * Real time chart value */ export declare type RealTimeChartValue = number | RealTimeChartPoint; /** * Object containing the series definition, used to pass data to the component */ export interface RealTimeChartValues { /** * Chart points by serie name */ [key: string]: RealTimeChartValue[]; } /** * Object containing the series definition and values - designed for component internal use only */ export interface RealTimeChartSerieDefinition { /** * Serie definition */ def: RealTimeChartSerie; /** * Used to store the fadded colors to present in the chart */ color: RealTimeChartSerieColor; /** * Last value that appeared in the serie */ lastValue: number; /** * Values currently being displayed in the chart */ data: number[]; /** * New available values to be added to the data */ newValues: number[]; /** * New available values to be added to the data */ newPoints: RealTimeChartPoint[]; /** * d3 line path */ line: d3.Selection; /** * d3 area path */ area: d3.Selection; } /** * Object containing a serie definition and values - designed for component internal use only */ export interface RealTimeChartSeriesDefinition { /** * Serie definition by serie name */ [key: string]: RealTimeChartSerieDefinition; }