mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
GraphNG: rename "points" to "showPoints" (#29635)
* rename "points" to "showPoints" * rename ShowPoints enum to PointVisibility
This commit is contained in:
@@ -2,7 +2,7 @@ import { FieldColorModeId, FieldConfigProperty, PanelPlugin } from '@grafana/dat
|
||||
import { LegendDisplayMode } from '@grafana/ui';
|
||||
import {
|
||||
GraphFieldConfig,
|
||||
PointMode,
|
||||
PointVisibility,
|
||||
DrawStyle,
|
||||
AxisPlacement,
|
||||
graphFieldOptions,
|
||||
@@ -76,11 +76,11 @@ export const plugin = new PanelPlugin<Options, GraphFieldConfig>(GraphPanel)
|
||||
showIf: c => c.drawStyle === DrawStyle.Line,
|
||||
})
|
||||
.addRadio({
|
||||
path: 'points',
|
||||
name: 'Points',
|
||||
defaultValue: graphFieldOptions.points[0].value,
|
||||
path: 'showPoints',
|
||||
name: 'Show points',
|
||||
defaultValue: graphFieldOptions.showPoints[0].value,
|
||||
settings: {
|
||||
options: graphFieldOptions.points,
|
||||
options: graphFieldOptions.showPoints,
|
||||
},
|
||||
})
|
||||
.addSliderInput({
|
||||
@@ -92,7 +92,7 @@ export const plugin = new PanelPlugin<Options, GraphFieldConfig>(GraphPanel)
|
||||
max: 10,
|
||||
step: 1,
|
||||
},
|
||||
showIf: c => c.points !== PointMode.Never,
|
||||
showIf: c => c.showPoints !== PointVisibility.Never,
|
||||
})
|
||||
.addRadio({
|
||||
path: 'axisPlacement',
|
||||
|
||||
Reference in New Issue
Block a user