fields

package
v0.22.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2023 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FieldType added in v0.21.15

type FieldType string
const (
	FieldTypeTime FieldType = "time"
)

type Matcher

type Matcher func(field *sdk.FieldConfigOverride)

func ByName

func ByName(name string) Matcher

ByName matches a specific field name.

func ByQuery

func ByQuery(ref string) Matcher

ByQuery matches all fields returned by the given query.

func ByRegex added in v0.21.15

func ByRegex(regex string) Matcher

ByRegex matches fields names using a regex.

func ByType added in v0.21.15

func ByType(fieldType FieldType) Matcher

ByType matches fields with a specific type.

type OverrideOption

type OverrideOption func(field *sdk.FieldConfigOverride)

func AxisPlacement added in v0.21.15

func AxisPlacement(placement axis.PlacementMode) OverrideOption

AxisPlacement overrides how the axis should be placed in the panel.

func FillOpacity

func FillOpacity(opacity int) OverrideOption

FillOpacity overrides the opacity.

func FixedColorScheme added in v0.20.14

func FixedColorScheme(color string) OverrideOption

FixedColorScheme forces the use of a fixed color scheme.

func NegativeY added in v0.21.15

func NegativeY() OverrideOption

NegativeY flips the results to negative values on the Y axis.

func Stack added in v0.21.15

func Stack(mode StackMode) OverrideOption

Stack overrides if the series should be stacked and using which mode (default not stacked).

func Unit

func Unit(unit string) OverrideOption

Unit overrides the unit.

type StackMode added in v0.21.15

type StackMode string

StackMode configures mode of series stacking. FIXME: copied here to avoid circular imports with parent package

const (
	// Unstacked will not stack series
	Unstacked StackMode = "none"
	// NormalStack will stack series as absolute numbers
	NormalStack StackMode = "normal"
	// PercentStack will stack series as percents
	PercentStack StackMode = "percent"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL