mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
GraphNG: fix and optimize spanNulls (#29633)
* fix and optimize spanNulls * AsZero implies spanNulls = true, to prevent null-scanning * move spanNulls toggle below fillOpacity
This commit is contained in:
@@ -63,6 +63,18 @@ export const plugin = new PanelPlugin<Options, GraphFieldConfig>(GraphPanel)
|
||||
},
|
||||
showIf: c => c.drawStyle !== DrawStyle.Points,
|
||||
})
|
||||
.addRadio({
|
||||
path: 'spanNulls',
|
||||
name: 'Null values',
|
||||
defaultValue: false,
|
||||
settings: {
|
||||
options: [
|
||||
{ label: 'Gaps', value: false },
|
||||
{ label: 'Connected', value: true },
|
||||
],
|
||||
},
|
||||
showIf: c => c.drawStyle === DrawStyle.Line,
|
||||
})
|
||||
.addRadio({
|
||||
path: 'points',
|
||||
name: 'Points',
|
||||
@@ -82,17 +94,6 @@ export const plugin = new PanelPlugin<Options, GraphFieldConfig>(GraphPanel)
|
||||
},
|
||||
showIf: c => c.points !== PointMode.Never,
|
||||
})
|
||||
.addRadio({
|
||||
path: 'spanNulls',
|
||||
name: 'Null values',
|
||||
defaultValue: false,
|
||||
settings: {
|
||||
options: [
|
||||
{ label: 'Gaps', value: false },
|
||||
{ label: 'Connected', value: true },
|
||||
],
|
||||
},
|
||||
})
|
||||
.addRadio({
|
||||
path: 'axisPlacement',
|
||||
name: 'Placement',
|
||||
|
||||
Reference in New Issue
Block a user