axis

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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(axis *YAxis)

Option represents an option that can be used to configure a Y axis.

func Decimals

func Decimals(decimals int) Option

Decimals set the number of decimals to be displayed on the axis.

func Max

func Max(max float64) Option

Max sets the maximum value expected on this axis.

func Min

func Min(min float64) Option

Min sets the minimum value expected on this axis.

func Unit

func Unit(unit string) Option

Unit sets the unit of the data displayed on this axis.

type SDKAxis

type SDKAxis struct {
	Decimals    *int     `json:"decimals"`
	Format      string   `json:"format"`
	LogBase     int      `json:"logBase"`
	Show        bool     `json:"show"`
	Max         *string  `json:"max"`
	Min         *string  `json:"min"`
	SplitFactor *float64 `json:"splitFactor"`
}

type YAxis

type YAxis struct {
	Builder *SDKAxis
}

YAxis represents the Y axis of a heatmap.

func New

func New(options ...Option) *YAxis

New creates a new YAxis configuration.

Jump to

Keyboard shortcuts

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