Projekt

Obecné

Profil

Stáhnout (603 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1 8cca41c0 Štěpán Červenka
import {Graph} from "./graph";
2
3
declare var require: any
4
5
export class EmptyGraph implements Graph{
6
7
  message: string;
8
9
  constructor(message) {
10
    this.message = message;
11
  }
12
13
14
  getConfig(): {} {
15
    return require('/src/vega/config/config.json');
16
  }
17
18
  getSpec(): {} {
19
    const lodash = require('lodash/object');
20
    const rvalue: any = {};
21
    let base = require('/src/vega/base/empty.json');
22
    lodash.merge(rvalue, base);
23
    rvalue.signals[0].value = this.message;
24
    return rvalue;
25
  }
26
27 66c042f1 Štěpán Červenka
  setData(spec, data) {
28
    //DO NOTHING
29
  }
30
31
  setLegendInfo(spec, legend) {
32
    //DO NOTHING
33
  }
34
35 8cca41c0 Štěpán Červenka
}