MAIDR JavaScript API
    Preparing search index...

    Function axisUnitMs

    • How many milliseconds one unit of an axis's values spans, or undefined where its values are not times.

      A date format's values are epoch milliseconds: that is how it prints them. So it ignores a AxisFormat.unit, and says so in the console, once for each unit, when the unit is another. Honoured, a unit of seconds would have read daily bins as 2.7 years beside dates that print right. Any other format says what its values count with unit, singular or plural, in any case; without one, its values are numbers, and with one that is not a TimeUnit they are numbers too and the console says so, once for each unit.

      Parameters

      • format: AxisFormat | undefined

        The format the axis declares

      Returns number | undefined

      The milliseconds in one unit of the axis, or undefined