|
|
|
|
@ -68,8 +68,8 @@ export const plugin = new PanelPlugin<Options, GraphFieldConfig>(TimeSeriesPanel |
|
|
|
|
}) |
|
|
|
|
.addSliderInput({ |
|
|
|
|
path: 'fillOpacity', |
|
|
|
|
name: 'Fill area opacity', |
|
|
|
|
defaultValue: 10, |
|
|
|
|
name: 'Fill opacity', |
|
|
|
|
defaultValue: 0, |
|
|
|
|
settings: { |
|
|
|
|
min: 0, |
|
|
|
|
max: 100, |
|
|
|
|
@ -77,6 +77,15 @@ export const plugin = new PanelPlugin<Options, GraphFieldConfig>(TimeSeriesPanel |
|
|
|
|
}, |
|
|
|
|
showIf: c => c.drawStyle !== DrawStyle.Points, |
|
|
|
|
}) |
|
|
|
|
.addRadio({ |
|
|
|
|
path: 'fillGradient', |
|
|
|
|
name: 'Fill gradient', |
|
|
|
|
defaultValue: graphFieldOptions.fillGradient[0].value, |
|
|
|
|
settings: { |
|
|
|
|
options: graphFieldOptions.fillGradient, |
|
|
|
|
}, |
|
|
|
|
showIf: c => !!(c.drawStyle !== DrawStyle.Points && c.fillOpacity && c.fillOpacity > 0), |
|
|
|
|
}) |
|
|
|
|
.addCustomEditor<void, LineStyle>({ |
|
|
|
|
id: 'lineStyle', |
|
|
|
|
path: 'lineStyle', |
|
|
|
|
@ -87,15 +96,6 @@ export const plugin = new PanelPlugin<Options, GraphFieldConfig>(TimeSeriesPanel |
|
|
|
|
process: identityOverrideProcessor, |
|
|
|
|
shouldApply: f => f.type === FieldType.number, |
|
|
|
|
}) |
|
|
|
|
.addRadio({ |
|
|
|
|
path: 'fillGradient', |
|
|
|
|
name: 'Fill gradient', |
|
|
|
|
defaultValue: graphFieldOptions.fillGradient[0], |
|
|
|
|
settings: { |
|
|
|
|
options: graphFieldOptions.fillGradient, |
|
|
|
|
}, |
|
|
|
|
showIf: c => !!(c.drawStyle !== DrawStyle.Points && c.fillOpacity && c.fillOpacity > 0), |
|
|
|
|
}) |
|
|
|
|
.addRadio({ |
|
|
|
|
path: 'spanNulls', |
|
|
|
|
name: 'Null values', |
|
|
|
|
|