MAIDR Documentation - v4.4.0
    Preparing search index...

    A scale bound to one of a Cartesian chart's axes.

    Only the stacking mode is read. Stacking is a property of the SCALE rather than of a series — AnyChart reports every area series as 'area' whether or not the chart sums them — so the series API cannot answer whether the bands sit on one another.

    interface AnyChartScale {
        stackMode?: () => string;
        getType?: () => string;
        inverted?: () => boolean;
    }
    Index

    Properties

    stackMode?: () => string

    'none' on an ordinary scale, 'value' when series are summed, and 'percent' when they are drawn as shares of a common total. Absent on scale types that cannot stack (an ordinal x scale, a colour scale).

    getType?: () => string

    The scale's own kind: 'ordinal', 'linear', 'log', 'date-time'.

    Read on the X scale only, and only to answer one question: whether the categories are named or measured. A marker series on an ordinal x scale is a Cleveland dot plot rather than a scatter, and nothing on the series itself says so.

    inverted?: () => boolean

    Whether the scale is drawn from its far end.

    Read on the X scale only, and only to answer where a bar chart's categories start. AnyChart's own defaults differ by chart type -- a bar (horizontal) starts inverted so its first category sits at the top, a column does not -- so this is true on an ordinary horizontal bar chart and says nothing is wrong; what matters is that it disagrees with the order the marks are rendered in (#1021).