mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
XYChart: Remove some panel opts that can't logically apply (#70202)
This commit is contained in:
parent
670bef8c35
commit
0f7407dd91
@ -15,6 +15,34 @@ import { ScatterFieldConfig, ScatterShow } from './types';
|
||||
export function getScatterFieldConfig(cfg: ScatterFieldConfig): SetFieldConfigOptionsArgs<ScatterFieldConfig> {
|
||||
return {
|
||||
standardOptions: {
|
||||
[FieldConfigProperty.Min]: {
|
||||
hideFromDefaults: true,
|
||||
},
|
||||
[FieldConfigProperty.Max]: {
|
||||
hideFromDefaults: true,
|
||||
},
|
||||
[FieldConfigProperty.Unit]: {
|
||||
hideFromDefaults: true,
|
||||
},
|
||||
[FieldConfigProperty.Decimals]: {
|
||||
hideFromDefaults: true,
|
||||
},
|
||||
[FieldConfigProperty.NoValue]: {
|
||||
hideFromDefaults: true,
|
||||
},
|
||||
[FieldConfigProperty.DisplayName]: {
|
||||
hideFromDefaults: true,
|
||||
},
|
||||
|
||||
[FieldConfigProperty.Thresholds]: {
|
||||
hideFromDefaults: true,
|
||||
},
|
||||
[FieldConfigProperty.Mappings]: {
|
||||
hideFromDefaults: true,
|
||||
},
|
||||
|
||||
// TODO: this still leaves Color series by: [ Last | Min | Max ]
|
||||
// because item.settings?.bySeriesSupport && colorMode.isByValue
|
||||
[FieldConfigProperty.Color]: {
|
||||
settings: {
|
||||
byValueSupport: true,
|
||||
|
Loading…
Reference in New Issue
Block a user