aboutsummaryrefslogtreecommitdiffstats
path: root/sdnr/wt/odlux/apps/performanceHistoryApp/src/models/chartTypes.ts
blob: 8ea59e2ec6f2d40c99455d54ae2ac0071a1fec65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
export interface IData  {
  x: string;
  y: string;
}
  
/**
 * Structure of chartjs dataset with the chart properties.
 */
  export interface IDataSet {
    name: string,
    label: string,
    lineTension: 0,
    bezierCurve: boolean;
    fill: boolean,
    borderColor: string,
    data: IData[],
    columnLabel:string
  }

/**
 * Structure of chartjs dataset which is sent to the chart.
 */
  export interface IDataSetsObject  {
    datasets: IDataSet[]
  }

/**
 * Interface used by chart for sorting on time-stamp
 */
  export interface ITimeStamp {
    "time-stamp": string;
  }