func Max(max float64) Option {
	return func(axis *Axis) {
		axis.Builder.Max = sdk.NewFloatString(max)
	}
}
Max sets the maximum value expected on this axis.
package axis
import (
	"github.com/grafana-tools/sdk"
)
type Option func(axis *Axis)
type Axis struct {
	Builder *sdk.Axis
}
func New(options ...Option) *Axis {
	axis := &Axis{Builder: &sdk.Axis{
		Format:  "short",
		Show:    true,
		LogBase: 1,
	}}
	for _, opt := range options {
		opt(axis)
	}
	return axis
}
func Unit(unit string) Option {
	return func(axis *Axis) {
		axis.Builder.Format = unit
	}
}
func Hide() Option {
	return func(axis *Axis) {
		axis.Builder.Show = false
	}
}
func LogBase(base int) Option {
	return func(axis *Axis) {
		axis.Builder.LogBase = base
	}
}
func Label(label string) Option {
	return func(axis *Axis) {
		axis.Builder.Label = label
	}
}
func Min(min float64) Option {
	return func(axis *Axis) {
		axis.Builder.Min = sdk.NewFloatString(min)
	}
}