interface IBeforeDrawableChart {
    onBeforeDraw(fn: ((event: DashboardItemScriptEvent) => void)): ScriptEventSubscription;
}

Implemented by

Methods

Methods

  • Bind a function to fire before the chart draws with new data.

    Any changes to event.data.plotlyData will be reflected in the drawn chart.

    Changing any of the plots in event.data.plotlyData will cause the click events to no longer fire on this chart.

    Parameters

    Returns ScriptEventSubscription

    ScriptEventSubscription