modern-xlsx API Reference - v1.3.0
    Preparing search index...

    Interface AxisOptions

    Options for configuring a chart axis via ChartBuilder.catAxis or ChartBuilder.valAxis.

    interface AxisOptions {
        crossesAt?: number;
        delete?: boolean;
        fontSize?: number;
        logBase?: number;
        majorGridlines?: boolean;
        majorTickMark?: TickMark;
        majorUnit?: number;
        max?: number;
        min?: number;
        minorGridlines?: boolean;
        minorTickMark?: TickMark;
        minorUnit?: number;
        numFmt?: string;
        position?: AxisPosition;
        reversed?: boolean;
        sourceLinked?: boolean;
        tickLblPos?: TickLabelPosition;
        title?:
            | string
            | { bold?: boolean; color?: string; fontSize?: number; text: string };
    }
    Index
    crossesAt?: number

    Value where the perpendicular axis crosses this axis.

    delete?: boolean

    Hide the axis entirely.

    fontSize?: number

    Font size for tick labels in hundredths of a point (1400 = 14pt); the validated range is 100-400000.

    logBase?: number

    Logarithmic base (e.g., 10 for log scale).

    majorGridlines?: boolean

    Show major gridlines.

    majorTickMark?: TickMark

    Major tick mark style.

    majorUnit?: number

    Major tick/gridline interval.

    max?: number

    Maximum axis value (auto-scaled if omitted).

    min?: number

    Minimum axis value (auto-scaled if omitted).

    minorGridlines?: boolean

    Show minor gridlines.

    minorTickMark?: TickMark

    Minor tick mark style.

    minorUnit?: number

    Minor tick/gridline interval.

    numFmt?: string

    Number format code for axis labels (e.g., '#,##0').

    position?: AxisPosition

    Axis position (left, right, top, bottom).

    reversed?: boolean

    Reverse the axis direction.

    sourceLinked?: boolean

    Whether the number format is linked to the source data.

    tickLblPos?: TickLabelPosition

    Tick label position relative to the axis.

    title?:
        | string
        | { bold?: boolean; color?: string; fontSize?: number; text: string }

    Axis title text, or an object with text and formatting. fontSize is in hundredths of a point (1400 = 14pt), written verbatim as DrawingML sz; the validated range is 100-400000.