Barchart: Fixes barchart switching from palette to thresholds color mode (#40954) (#40974)

(cherry picked from commit 858d654d1c)

Co-authored-by: Torkel Ödegaard <torkel@grafana.org>
This commit is contained in:
Grot (@grafanabot)
2021-10-27 10:15:52 +02:00
committed by GitHub
co-authored by Torkel Ödegaard
parent 808ffb0d51
commit 1952e01e48
@@ -18,6 +18,7 @@ export const plugin = new PanelPlugin<BarChartOptions, BarChartFieldConfig>(BarC
[FieldConfigProperty.Color]: {
settings: {
byValueSupport: true,
preferThresholdsMode: false,
},
defaultValue: {
mode: FieldColorModeId.PaletteClassic,