|
|
@@ -1,4 +1,10 @@
|
|
|
-import PiechartPanelOptions, { defaultProps } from './PiechartPanelOptions';
|
|
|
+import { ReactPanelPlugin } from '@grafana/ui';
|
|
|
+
|
|
|
+import PiechartPanelEditor from './PiechartPanelEditor';
|
|
|
import { PiechartPanel } from './PiechartPanel';
|
|
|
+import { PiechartOptions, defaults } from './types';
|
|
|
+
|
|
|
+export const reactPanel = new ReactPanelPlugin<PiechartOptions>(PiechartPanel);
|
|
|
|
|
|
-export { PiechartPanel as Panel, PiechartPanelOptions as PanelOptions, defaultProps as PanelDefaults };
|
|
|
+reactPanel.setEditor(PiechartPanelEditor);
|
|
|
+reactPanel.setDefaults(defaults);
|