histogram

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const PluginKind = "HistogramChart"

Variables

This section is empty.

Functions

func Chart

func Chart(options ...Option) panel.Option

Types

type Builder

type Builder struct {
	PluginSpec `json:",inline" yaml:",inline"`
}

type Option

type Option func(plugin *Builder) error

func Format

func Format(format common.Format) Option

func Max

func Max(max float64) Option

func Min

func Min(min float64) Option

func Thresholds

func Thresholds(thresholds common.Thresholds) Option

type PluginSpec

type PluginSpec struct {
	Format     *common.Format     `json:"format,omitempty" yaml:"format,omitempty"`
	Min        float64            `json:"min,omitempty" yaml:"min,omitempty"`
	Max        float64            `json:"max,omitempty" yaml:"max,omitempty"`
	Thresholds *common.Thresholds `json:"thresholds,omitempty" yaml:"thresholds,omitempty"`
}

Jump to

Keyboard shortcuts

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