chart

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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
}

Jump to

Keyboard shortcuts

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