MAIDR Documentation - v3.69.0
    Preparing search index...

    Interface AnyChartInstance

    The minimal chart interface the adapter requires.

    All supported AnyChart chart types (Cartesian, Pie, etc.) expose these methods once the chart has been drawn.

    interface AnyChartInstance {
        title: () => string | AnyChartTitle;
        container: () => string | HTMLElement | AnyChartStage;
        getSeriesCount: () => number;
        getSeriesAt: (index: number) => AnyChartSeries | null;
        xAxis?: (index?: number) => AnyChartAxis | null;
        yAxis?: (index?: number) => AnyChartAxis | null;
        getType?: () => string;
        data?: () => AnyChartDataView;
        toSvg?: () => string;
    }
    Index

    Properties

    title: () => string | AnyChartTitle

    Chart title accessor.

    container: () => string | HTMLElement | AnyChartStage

    Rendering container / stage.

    getSeriesCount: () => number

    Number of series in the chart.

    getSeriesAt: (index: number) => AnyChartSeries | null

    Get a series by its numeric index.

    xAxis?: (index?: number) => AnyChartAxis | null

    X-axis accessor (Cartesian charts). Returns null for non-Cartesian.

    yAxis?: (index?: number) => AnyChartAxis | null

    Y-axis accessor (Cartesian charts). Returns null for non-Cartesian.

    getType?: () => string

    Chart type string (e.g. "bar", "line", "pie").

    data?: () => AnyChartDataView

    Chart-level data accessor. Present on single-dataset chart types such as Heatmap, which do not expose a series-based API and instead store their cells in a top-level data view. Absent on multi-series Cartesian charts (bar, line, scatter, box, candlestick).

    toSvg?: () => string

    SVG string export.