Commit Graph

19 Commits (571d86e936a5b27cb7fc54dc16a4ea74842c11ec)

Author SHA1 Message Date
David Schnur 24f70fc6bd Re-introduced the %h specifier for back-compat. 13 years ago
Daniel Shapiro a35c7ab696 Remove some incorrect else-if logic in time plugin
Looks like this was mistakenly introduced in a whitespace/bracket cleanup.
13 years ago
David Schnur ec7322e4ab Initialize time-mode support in processOptions.
Resolves #1016.  Initialization consists of adding the tickGenerator and
tickFormatter functions to each axis.  This should happen exactly once
per plot, but since the code was previously using the processDatapoints
hook, it was called once per series.  When no series were present, it
ran zero times, triggering an exception when we later checked for the
existence of the functions.

Binding to the processOptions hook ensures that the axes are always
modified once, regardless of how many series there are.  The axes are
already initialized by the point the hook runs, so this change shouldn't
cause any problems.
13 years ago
David Schnur 4e8d8535e0 Move time-specific options into the time plugin. 13 years ago
martinqt 1e6c45bd95 Update js files 13 years ago
Mark Côté 0d47f513ca Don't prepend 'Q' with %q specifier, but keep the 'Q' for default formatting. 14 years ago
Mark Côté 657a39b8f9 Unbitrotted risicle's patch from issue #49.
Also fixed formatting and removed unused change to tickFormatter args.
14 years ago
David Schnur 9e21074d82 Updated license headers for #805.
Added licensing information to each file's headers, along with some
minor cleanup.
14 years ago
David Schnur a5b254108d Added copyright and MIT license header. 14 years ago
David Schnur e10b38bfcc Re-expose formatDate on the plot object. 14 years ago
David Schnur f8064ca7ea Further whitespace and braces cleanup. 14 years ago
David Schnur 6a02cab9ac Cleaned up tabs and whitespace. 14 years ago
Nick Campbell 414e7dec14 fmt hoisted to global.
`fmt` was being hoisted as a global variable.

Signed-off-by: Nick Campbell <nicholas.j.campbell@gmail.com>
14 years ago
Mark Cote 3371401739 Added %l specifier to timeformat. 14 years ago
Mark Cote 22ac76c023 Updated docs. Removed %u specifier. 14 years ago
Mark Cote bffc2eea9f If found, use strftime function of date objects instead of built-in formatting. 14 years ago
Mark Cote a54ec4ad64 Time format now a proper subset of strftime's. 14 years ago
Mark Côté 1f484ed293 Fix minTickSize for year units. 14 years ago
Mark Côté 854292986d Moved time-series functionality into a separate plug-in and incorporated
time zones.
14 years ago