MAIDR JavaScript API
    Preparing search index...

    Interface EChartsBindable

    An ECharts instance that can be kept bound.

    on, off, getOption, getWidth, getHeight and getDom are public ECharts API, and all of them are present on an instance from echarts and from echarts/core alike.

    interface EChartsBindable {
        on: (event: string, handler: () => void) => void;
        off: (event: string, handler: () => void) => void;
        getOption: () => unknown;
        getWidth: () => number;
        getHeight: () => number;
        getDom: () => HTMLElement;
        getModel: () => EChartsModel;
    }

    Hierarchy (View Summary)

    Index

    Properties

    on: (event: string, handler: () => void) => void

    Subscribes to one of the instance's events.

    off: (event: string, handler: () => void) => void

    Unsubscribes a handler on added.

    getOption: () => unknown

    The option the chart was last drawn from, every default resolved.

    getWidth: () => number

    The chart's width in CSS pixels.

    getHeight: () => number

    The chart's height in CSS pixels.

    getDom: () => HTMLElement

    The element passed to echarts.init.

    getModel: () => EChartsModel