PiDraw API
    Preparing search index...

    Interface IAxisOptions

    How an axis is drawn, whatever the line it is on.

    interface IAxisOptions {
        name?: string;
        padding?: number;
        range?: { max: number; min: number };
        side?: "left" | "right";
        ticks?: IAxisTicks;
    }
    Index
    name?: string

    The name of the axis, written beyond its arrow, on the side that has no numbers. None by default.

    padding?: number

    How far the drawn axis stops from the borders of the drawing, in pixels, measured along the axis. 20 by default.

    range?: { max: number; min: number }

    The part of the axis that is drawn, in units of the axis from its zero ({min: -10, max: 10}). The axis is also cut by the borders of the drawing and by padding. The whole axis by default. The axis must have a zero (director or through).

    side?: "left" | "right"

    The side of the axis where the numbers are, seen from the way the axis goes: 'right' is under an axis that goes to the right, 'left' is left of an axis that goes up. 'right' by default.

    ticks?: IAxisTicks

    The graduation. None by default.