axis

package
v0.22.2 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: MIT Imports: 1 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Axis

type Axis struct {
	Builder *sdk.Axis
}

Axis represents a visualization axis.

func New

func New(options ...Option) *Axis

New creates a new Axis configuration.

type Option

type Option func(axis *Axis)

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

func Hide

func Hide() Option

Hide makes the axis hidden.

func Label

func Label(label string) Option

Label sets the label on this axis.

func LogBase

func LogBase(base int) Option

LogBase allows to change the logarithmic scale used to display the values.

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.

Jump to

Keyboard shortcuts

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