[v11.0.x] XYChart2: Fix migration of pointSize fieldConfig (#87193)
XYChart: Fix default point size (#87192)
(cherry picked from commit ee4422d1e2)
Co-authored-by: Adela Almasan <88068998+adela-almasan@users.noreply.github.com>
This commit is contained in:
co-authored by
Adela Almasan
parent
289ea7c22e
commit
08b6bc7a1d
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user