chart

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Methods added in v0.4.0

func Methods() []string

func ModuleName added in v0.4.0

func ModuleName() string

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(s *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