XYChart: Fix default point size (#87192)

This commit is contained in:
Adela Almasan 2024-05-01 12:19:54 -06:00 committed by GitHub
parent efff4c0bbd
commit ee4422d1e2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}