Skip to content

GraphFieldConfigBuilder🔗

Constructor🔗

func NewGraphFieldConfigBuilder() *GraphFieldConfigBuilder

Methods🔗

Build🔗

Builds the object.

func (builder *GraphFieldConfigBuilder) Build() (GraphFieldConfig, error)

AxisBorderShow🔗

func (builder *GraphFieldConfigBuilder) AxisBorderShow(axisBorderShow bool) *GraphFieldConfigBuilder

AxisCenteredZero🔗

func (builder *GraphFieldConfigBuilder) AxisCenteredZero(axisCenteredZero bool) *GraphFieldConfigBuilder

AxisColorMode🔗

func (builder *GraphFieldConfigBuilder) AxisColorMode(axisColorMode common.AxisColorMode) *GraphFieldConfigBuilder

AxisGridShow🔗

func (builder *GraphFieldConfigBuilder) AxisGridShow(axisGridShow bool) *GraphFieldConfigBuilder

AxisLabel🔗

func (builder *GraphFieldConfigBuilder) AxisLabel(axisLabel string) *GraphFieldConfigBuilder

AxisPlacement🔗

func (builder *GraphFieldConfigBuilder) AxisPlacement(axisPlacement common.AxisPlacement) *GraphFieldConfigBuilder

AxisSoftMax🔗

func (builder *GraphFieldConfigBuilder) AxisSoftMax(axisSoftMax float64) *GraphFieldConfigBuilder

AxisSoftMin🔗

func (builder *GraphFieldConfigBuilder) AxisSoftMin(axisSoftMin float64) *GraphFieldConfigBuilder

AxisWidth🔗

func (builder *GraphFieldConfigBuilder) AxisWidth(axisWidth float64) *GraphFieldConfigBuilder

BarAlignment🔗

func (builder *GraphFieldConfigBuilder) BarAlignment(barAlignment common.BarAlignment) *GraphFieldConfigBuilder

BarMaxWidth🔗

func (builder *GraphFieldConfigBuilder) BarMaxWidth(barMaxWidth float64) *GraphFieldConfigBuilder

BarWidthFactor🔗

func (builder *GraphFieldConfigBuilder) BarWidthFactor(barWidthFactor float64) *GraphFieldConfigBuilder

DrawStyle🔗

func (builder *GraphFieldConfigBuilder) DrawStyle(drawStyle common.GraphDrawStyle) *GraphFieldConfigBuilder

FillBelowTo🔗

func (builder *GraphFieldConfigBuilder) FillBelowTo(fillBelowTo string) *GraphFieldConfigBuilder

FillColor🔗

func (builder *GraphFieldConfigBuilder) FillColor(fillColor string) *GraphFieldConfigBuilder

FillOpacity🔗

func (builder *GraphFieldConfigBuilder) FillOpacity(fillOpacity float64) *GraphFieldConfigBuilder

GradientMode🔗

func (builder *GraphFieldConfigBuilder) GradientMode(gradientMode common.GraphGradientMode) *GraphFieldConfigBuilder

HideFrom🔗

func (builder *GraphFieldConfigBuilder) HideFrom(hideFrom cog.Builder[common.HideSeriesConfig]) *GraphFieldConfigBuilder

InsertNulls🔗

func (builder *GraphFieldConfigBuilder) InsertNulls(insertNulls common.BoolOrFloat64) *GraphFieldConfigBuilder

LineColor🔗

func (builder *GraphFieldConfigBuilder) LineColor(lineColor string) *GraphFieldConfigBuilder

LineInterpolation🔗

func (builder *GraphFieldConfigBuilder) LineInterpolation(lineInterpolation common.LineInterpolation) *GraphFieldConfigBuilder

LineStyle🔗

func (builder *GraphFieldConfigBuilder) LineStyle(lineStyle cog.Builder[common.LineStyle]) *GraphFieldConfigBuilder

LineWidth🔗

func (builder *GraphFieldConfigBuilder) LineWidth(lineWidth float64) *GraphFieldConfigBuilder

PointColor🔗

func (builder *GraphFieldConfigBuilder) PointColor(pointColor string) *GraphFieldConfigBuilder

PointSize🔗

func (builder *GraphFieldConfigBuilder) PointSize(pointSize float64) *GraphFieldConfigBuilder

PointSymbol🔗

func (builder *GraphFieldConfigBuilder) PointSymbol(pointSymbol string) *GraphFieldConfigBuilder

ScaleDistribution🔗

func (builder *GraphFieldConfigBuilder) ScaleDistribution(scaleDistribution cog.Builder[common.ScaleDistributionConfig]) *GraphFieldConfigBuilder

ShowPoints🔗

func (builder *GraphFieldConfigBuilder) ShowPoints(showPoints common.VisibilityMode) *GraphFieldConfigBuilder

SpanNulls🔗

Indicate if null values should be treated as gaps or connected.

When the value is a number, it represents the maximum delta in the

X axis that should be considered connected. For timeseries, this is milliseconds

func (builder *GraphFieldConfigBuilder) SpanNulls(spanNulls common.BoolOrFloat64) *GraphFieldConfigBuilder

Stacking🔗

func (builder *GraphFieldConfigBuilder) Stacking(stacking cog.Builder[common.StackingConfig]) *GraphFieldConfigBuilder

ThresholdsStyle🔗

func (builder *GraphFieldConfigBuilder) ThresholdsStyle(thresholdsStyle cog.Builder[common.GraphThresholdsStyleConfig]) *GraphFieldConfigBuilder

Transform🔗

func (builder *GraphFieldConfigBuilder) Transform(transform common.GraphTransform) *GraphFieldConfigBuilder

See also🔗