• David Schnur's avatar
    Initialize time-mode support in processOptions. · ec7322e4
    David Schnur authored
    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.
    ec7322e4
jquery.flot.time.js 11.4 KB