From 1b47ec05e043445385f194557d07e071e1d94569 Mon Sep 17 00:00:00 2001 From: Emanuele Laface <emanuele.laface@esss.se> Date: Wed, 29 Jul 2020 20:21:36 +0200 Subject: [PATCH] Fix time label --- .../plugins/thirdparty/flot_extended.plugin.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/WebSites/ts2_helevpres/plugins/thirdparty/flot_extended.plugin.js b/WebSites/ts2_helevpres/plugins/thirdparty/flot_extended.plugin.js index 7a2c747..d00b086 100755 --- a/WebSites/ts2_helevpres/plugins/thirdparty/flot_extended.plugin.js +++ b/WebSites/ts2_helevpres/plugins/thirdparty/flot_extended.plugin.js @@ -64,7 +64,7 @@ self.reset = function(e) { - self.zoom(e, { + self.zoom(e, { xaxis: {from: null, to: null}, yaxis: {from: null, to: null}, }) @@ -73,7 +73,7 @@ self.zoom = function (event, ranges) { if (!ranges.xaxis) return - + var opts = plot.getOptions() _.each(opts.xaxes, function(axis) { axis.min = ranges.xaxis.from @@ -83,7 +83,7 @@ axis.min = ranges.yaxis.from axis.max = ranges.yaxis.to }) - + plot.setupGrid() plot.draw() plot.clearSelection() @@ -123,7 +123,7 @@ tooltip.appendTo($container); console.log(currentSettings.zoom, currentSettings.zoom == "") - var options = { + var options = { grid: { borderWidth: 0, hoverable: currentSettings.tooltip, -- GitLab