|
|
|
@ -4,22 +4,6 @@ import { ScatterSeriesConfig, SeriesMapping, XYDimensionConfig, Options as PrevO |
|
|
|
|
|
|
|
|
|
import { XYSeriesConfig, Options } from './panelcfg.gen'; |
|
|
|
|
|
|
|
|
|
// export const xyChartChangeHandler: PanelTypeChangedHandler = (
|
|
|
|
|
// panel,
|
|
|
|
|
// prevPluginId,
|
|
|
|
|
// prevOptions,
|
|
|
|
|
// prevFieldConfig
|
|
|
|
|
// ): Options => {
|
|
|
|
|
// if (prevPluginId === 'xychart') {
|
|
|
|
|
// return migrateOptions({
|
|
|
|
|
// options: prevOptions,
|
|
|
|
|
// fieldConfig: prevFieldConfig,
|
|
|
|
|
// } as PanelModel);
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
// return prevOptions as Options;
|
|
|
|
|
// };
|
|
|
|
|
|
|
|
|
|
export const xyChartMigrationHandler = (panel: PanelModel): Options => { |
|
|
|
|
const pluginVersion = panel?.pluginVersion ?? ''; |
|
|
|
|
|
|
|
|
@ -245,14 +229,5 @@ function migrateOptions(panel: PanelModel): Options { |
|
|
|
|
series: newSeries, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
custDefaults.pointSize = custDefaults.pointSize.fixed; |
|
|
|
|
|
|
|
|
|
// panel.fieldConfig = {
|
|
|
|
|
// defaults,
|
|
|
|
|
// overrides,
|
|
|
|
|
// };
|
|
|
|
|
|
|
|
|
|
// console.log('xyChartMigrationHandler', panel.options, newOptions);
|
|
|
|
|
|
|
|
|
|
return newOptions; |
|
|
|
|
} |
|
|
|
|