mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
PieChart: move hiding series to PanelContext (#33756)
This commit is contained in:
@@ -10,7 +10,6 @@ export const PieChartPanel: React.FC<Props> = ({
|
||||
height,
|
||||
options,
|
||||
data,
|
||||
onFieldConfigChange,
|
||||
replaceVariables,
|
||||
fieldConfig,
|
||||
timeZone,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { PieChartPanel } from './PieChartPanel';
|
||||
import { PieChartOptions } from './types';
|
||||
import { LegendDisplayMode, PieChartType, PieChartLabels, PieChartLegendValues } from '@grafana/ui';
|
||||
import { PieChartPanelChangedHandler } from './migrations';
|
||||
import { addHideFrom } from '../timeseries/config';
|
||||
|
||||
export const plugin = new PanelPlugin<PieChartOptions>(PieChartPanel)
|
||||
.setPanelChangeHandler(PieChartPanelChangedHandler)
|
||||
@@ -20,6 +21,9 @@ export const plugin = new PanelPlugin<PieChartOptions>(PieChartPanel)
|
||||
},
|
||||
},
|
||||
},
|
||||
useCustomConfig: (builder) => {
|
||||
addHideFrom(builder);
|
||||
},
|
||||
})
|
||||
.setPanelOptions((builder) => {
|
||||
builder
|
||||
|
||||
Reference in New Issue
Block a user