@jsfkit/types
    Preparing search index...

    Type Alias ChartScaleTime

    ChartScaleTime: ChartScaleBase & {
        auto?: boolean;
        baseUnit?: ChartTimeUnit;
        majorTimeUnit?: ChartTimeUnit;
        majorUnit?: number;
        max?: number;
        min?: number;
        minorTimeUnit?: ChartTimeUnit;
        minorUnit?: number;
        placement?: "band" | "point";
        type: "time";
    }

    A date scale. Values are date serial numbers.

    Type Declaration

    • Optionalauto?: boolean

      Whether the scale type was chosen automatically from the data. This is Excel's "Automatically select based on data" axis type.

      The scale's type is always the type currently in effect, so a renderer uses it as it is. When auto is true, an application that changes the data chooses the type again: a time scale when the category values are dates, otherwise a band or point scale. When it's false, the type is fixed, like Excel's "Text axis" and "Date axis" choices.

      false
      
    • OptionalbaseUnit?: ChartTimeUnit

      Smallest time unit that the data is grouped by. When absent, it's automatic.

    • OptionalmajorTimeUnit?: ChartTimeUnit

      The unit of majorUnit. When absent, it's automatic.

    • OptionalmajorUnit?: number

      Interval between major ticks, in majorTimeUnit. When absent, the interval is automatic.

    • Optionalmax?: number

      Fixed maximum, as a date serial number. When absent, the maximum is automatic.

    • Optionalmin?: number

      Fixed minimum, as a date serial number. When absent, the minimum is automatic.

    • OptionalminorTimeUnit?: ChartTimeUnit

      The unit of minorUnit. When absent, it's automatic.

    • OptionalminorUnit?: number

      Interval between minor ticks, in minorTimeUnit. When absent, the interval is automatic.

    • Optionalplacement?: "band" | "point"

      Whether dates are placed in bands (Excel's "Between tick marks") or on points ("On tick marks"), as with band and point scales.

      "band"
      
    • type: "time"

      Dates placed by their value.