PiDraw API
    Preparing search index...

    Interface IAxisTicks

    The graduation of an axis: ticks one step apart, with a number at each one. The zero is the point of the line that gives its position (A of director or through) and one unit is its vector (d of director, B - A of through): an axis found any other way (slope, parallel...) has no zero and cannot be graduated.

    interface IAxisTicks {
        digits?: number;
        labels?: "pi" | "numbers";
        marks?: TickSelection;
        numbers?: TickSelection | "none";
        size?: number;
        step?: number;
        zero?: boolean;
    }
    Index
    digits?: number

    How many decimals a number has at most. 2 by default.

    labels?: "pi" | "numbers"

    What is written at a tick: the number, or a fraction of pi (π/2, -π; the number when it is not one). 'numbers' by default.

    Which ticks are drawn, by their index from the zero: the multiples of every ({every: 5}: one in 5), the first tick with first ({first: true}: the unit alone, {every: 5, first: true}: the unit and the multiples of 5). All of them by default.

    numbers?: TickSelection | "none"

    On which of the drawn ticks a number is written: a selection like marks, or 'none'. By default all of them, thinned out when they would touch; a selection is taken as it is.

    size?: number

    The length of a tick, in pixels. 6 by default.

    step?: number

    The distance between two ticks, in units of the axis. 1 by default.

    zero?: boolean

    Whether the zero has a tick and a number. By default it does (the axes of the graph leave it to the other axis).