$.plot.formatDate() no longer accessible #834

dnschnur opened this Issue Sep 28, 2012 · 3 comments


None yet
4 participants

dnschnur commented Sep 28, 2012

Original author: capnbry (September 17, 2012 19:34:44)

I've previously used $.plot.formatDate() to generate formatted strings for my flot graphs tooltips but the code in git that changes time scale series to be a plugin seems to now seal this function inside the anonymous function scope.

Original issue: http://code.google.com/p/flot/issues/detail?id=755

@ghost ghost assigned dnschnur Oct 19, 2012

aras-p commented Nov 16, 2012

Yeah, this breaks various tooltip plugins. Sounds like just adding this near end of flot.time.js should fix that, "$.plot.formatDate = formatDate;"

@dnschnur dnschnur closed this Nov 22, 2012

formatDate doesn't use the timezone wrapper. Thus, plugins like tooltip must either wrap the date before passing the date in to be formatted, or formatDate should use the timezone passed in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment