From 94a8a264a7c1228bf5ec03e182621138d1b84fe3 Mon Sep 17 00:00:00 2001 From: Darold Gilles Date: Tue, 10 Jul 2012 16:56:51 +0200 Subject: [PATCH] Add trackFormatter to flotr2 line graphs to show current x/y values --- pgbadger | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pgbadger b/pgbadger index e4e725b..0877ff8 100755 --- a/pgbadger +++ b/pgbadger @@ -3056,6 +3056,11 @@ document.writeln('
+function dateTracker(obj) +{ + var dateToDisplay = new Date(parseInt(obj.x)); + return '('+dateToDisplay.toGMTString()+' , '+obj.y+')'; +} + /*! * bean.js - copyright Jacob Thornton 2011 * https://github.com/fat/bean -- 2.40.0