mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
XYChart: Fix default point size (#87192)
This commit is contained in:
parent
efff4c0bbd
commit
ee4422d1e2
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user