Back to godoc.org

Package chart

v1.0.3
Latest Go to latest

The highest tagged major version is .

Published: Mar 12, 2020 | License: MIT | Module: github.com/balerter/balerter

Index

type Chart

type Chart struct {
	// contains filtered or unexported fields
}

func New

func New(logger *zap.Logger) *Chart

func (*Chart) GetLoader

func (ch *Chart) GetLoader(script *script.Script) lua.LGFunction

func (*Chart) Name

func (ch *Chart) Name() string

func (*Chart) Render

func (ch *Chart) Render(title string, data *Data, w io.Writer) error

func (*Chart) Stop

func (ch *Chart) Stop() error

type Data

type Data struct {
	Title  string
	Series []DataSeries
}

type DataItem

type DataItem struct {
	Timestamp float64
	Value     float64
}

type DataSeries

type DataSeries struct {
	Color      string
	LineColor  string
	PointColor string
	Data       []DataItem
}

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier