MAIDR JavaScript API
    Preparing search index...

    The part of an ApexCharts chart instance the adapter reads.

    Pass the object new ApexCharts(el, options) returned. The adapter needs the instance itself: ApexCharts keeps no reference from the element back to its chart, and registers only charts that set chart.id.

    interface ApexChartsInstance {
        el: Element;
        w: ApexW;
        opts?: ApexOptions;
        addEventListener?: (name: string, handler: ApexEventHandler) => void;
        removeEventListener?: (name: string, handler: ApexEventHandler) => void;
        parentResizeHandler?: () => void;
    }
    Index

    Properties

    el: Element

    The container element the chart was created on.

    The chart's state.

    The options as the author passed them.

    addEventListener?: (name: string, handler: ApexEventHandler) => void

    Subscribes to a chart event such as 'mounted' or 'updated'.

    removeEventListener?: (name: string, handler: ApexEventHandler) => void

    Removes a handler added with addEventListener.

    parentResizeHandler?: () => void

    What ApexCharts runs when the element it watches for size changes — the container's parent at render() time — resizes: it redraws a chart whose container width changed, once any running animation is over, and does nothing otherwise. Not part of ApexCharts' documented API.