From ee4422d1e2de0cb00cd14a068bdf83c787924df0 Mon Sep 17 00:00:00 2001 From: Adela Almasan <88068998+adela-almasan@users.noreply.github.com> Date: Wed, 1 May 2024 12:19:54 -0600 Subject: [PATCH] XYChart: Fix default point size (#87192) --- .../plugins/panel/xychart/v2/migrations.ts | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/public/app/plugins/panel/xychart/v2/migrations.ts b/public/app/plugins/panel/xychart/v2/migrations.ts index baf0290222d..6cbe5b4875a 100644 --- a/public/app/plugins/panel/xychart/v2/migrations.ts +++ b/public/app/plugins/panel/xychart/v2/migrations.ts @@ -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; }