|
|
@@ -44,9 +44,9 @@ export class GraphLoader {
|
|
|
static getGraphWithInterval(sensors, data, interval, legendInfo, element, isAnalytics) {
|
|
|
// gets uses sensors array to get graph type
|
|
|
// then gets configuration and specification from corresponding class
|
|
|
- let graph = this.getGraphType(sensors,data, interval, legendInfo, isAnalytics);
|
|
|
- let config = graph.getConfig();
|
|
|
- let spec = graph.getSpec();
|
|
|
+ const graph = this.getGraphType(sensors,data, interval, legendInfo, isAnalytics);
|
|
|
+ const config = graph.getConfig();
|
|
|
+ const spec = graph.getSpec();
|
|
|
|
|
|
// then displays the graph
|
|
|
return this.showGraph(spec, config, element);
|
|
|
@@ -92,8 +92,6 @@ export class GraphLoader {
|
|
|
const vegaTooltip = require('vega-tooltip');
|
|
|
const handler = new vegaTooltip.Handler();
|
|
|
|
|
|
- console.log(config.height);
|
|
|
-
|
|
|
config.width = this.width;
|
|
|
config.height = this.height;
|
|
|
|