From e83ce5d7291fcc3b39d4e6f655a0beef18a39d74 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Wed, 29 Jan 2020 09:58:09 -0800 Subject: [PATCH] Fix flot xaxis labels After the flot update the xaxis labels aren't meaningful to humans (in fact I'm not quite sure what they were showing us). We can explicitly state the input type as milliseconds and the label render format. Doing this gives us labels that are meaningful to humans. Change-Id: I7912a536f3de2756404f8c7e7f31d8bd5890ab22 --- web/share/elastic-recheck.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/share/elastic-recheck.js b/web/share/elastic-recheck.js index 63e8006c..de712b8e 100644 --- a/web/share/elastic-recheck.js +++ b/web/share/elastic-recheck.js @@ -17,7 +17,9 @@ function update_graph_for_bug(main, bug) { if (bug['fails'] > 0) { $.plot(div, bug['data'], {xaxis: { - mode: "time" + mode: "time", + timeBase: "milliseconds", + timeformat: "%Y/%m/%d" }} ); } else {