Documentation ¶ Index ¶ type Chart func New(logger *zap.Logger) *Chart func (ch *Chart) GetLoader(script *script.Script) lua.LGFunction func (ch *Chart) Name() string func (ch *Chart) Render(title string, data *Data, w io.Writer) error func (ch *Chart) Stop() error type Data type DataItem type DataSeries 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 } Source Files ¶ View all Source files chart.go render.go Click to show internal directories. Click to hide internal directories.