This is documentation for the next version of Grafana. For the latest stable release, go to the latest version.

API Reference@grafana/dataPanelMigrationHandler

PanelMigrationHandler type

PanelMigrationHandler type

Called when a panel is first loaded with current panel model

Signature

export declare type PanelMigrationHandler<TOptions = any> = (panel: PanelModel<TOptions>) => Partial<TOptions>;

Import

import { PanelMigrationHandler } from '@grafana/data';