From: Darold Gilles Date: Tue, 10 Jul 2012 14:56:51 +0000 (+0200) Subject: Add trackFormatter to flotr2 line graphs to show current x/y values X-Git-Tag: v3.2~191 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=94a8a264a7c1228bf5ec03e182621138d1b84fe3;p=pgbadger Add trackFormatter to flotr2 line graphs to show current x/y values --- 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