MAIDR JavaScript API
    Preparing search index...

    Represents an axis in a Highcharts chart.

    interface HighchartsAxis {
        categories?: string[];
        names?: string[];
        getExtremes: () => { min: number; max: number };
        isDatetimeAxis?: boolean;
        reversed?: boolean;
        top?: number;
        left?: number;
        height?: number;
        width?: number;
        options: {
            title?: { text?: string };
            type?: string;
            reversed?: boolean;
            plotLines?: { value?: number }[];
            plotBands?: {
                from?: number;
                to?: number;
                label?: { text?: string };
                className?: string;
            }[];
        };
    }
    Index

    Properties

    categories?: string[]
    names?: string[]

    The other place Highcharts keeps a category axis' labels.

    An axis declared categories: [...] fills categories and leaves this empty. An axis declared type: 'category' -- the spelling Highcharts' own documentation uses for a chart of named tuples -- does the reverse: it collects the point names here and leaves categories an empty array, which is truthy and indexes to undefined (#1146).

    Read through declaredCategories() rather than directly, so that "what does the axis call slot 2" has one answer.

    getExtremes: () => { min: number; max: number }
    isDatetimeAxis?: boolean
    reversed?: boolean

    Whether the axis runs the other way — the resolved value, which Highcharts copies from options.reversed and also sets by itself on an inverted chart's x axis.

    top?: number

    Rendered distance from the chart top in px (present after render).

    left?: number

    Rendered distance from the chart left in px (present after render).

    height?: number

    Rendered axis height in px (present after render).

    width?: number

    Rendered axis width in px (present after render).

    options: {
        title?: { text?: string };
        type?: string;
        reversed?: boolean;
        plotLines?: { value?: number }[];
        plotBands?: {
            from?: number;
            to?: number;
            label?: { text?: string };
            className?: string;
        }[];
    }

    Type Declaration

    • Optionaltitle?: { text?: string }
    • Optionaltype?: string
    • Optionalreversed?: boolean

      Declares HighchartsAxis.reversed; read as its fallback.

    • OptionalplotLines?: { value?: number }[]

      Reference lines drawn across the plot — the significance cutoff of a volcano or Manhattan plot, which is the only place either chart states where its threshold is.

    • OptionalplotBands?: { from?: number; to?: number; label?: { text?: string }; className?: string }[]

      Qualitative bands drawn behind the axis — the shaded zones of a gauge or a bullet chart. Highcharts names one only in styled mode (via className) or through a label, so both are read.