Documentation ¶
Index ¶
- func GetDefaultChartColors() []ui.Color
- func Max(i, j int) int
- func MaxFloat64(i, j float64) float64
- func Min(i, j int) int
- func MinFloat64(i, j float64) float64
- func NewBarChartWidget(title string, storage *Storage, numBins int) *barChartWidget
- func NewStatsWidget(title string, storage *Storage) *statsWidget
- type App
- type GaugeWidget
- type LineChartWidget
- type PieChartWidget
- type RingBuffer
- type ScatterPlotWidget
- type Storage
- type Widget
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultChartColors ¶
func MaxFloat64 ¶
func MinFloat64 ¶
func NewBarChartWidget ¶
func NewStatsWidget ¶
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) AddInstructions ¶
func (app *App) AddInstructions()
func (*App) AddWidgetRow ¶
type GaugeWidget ¶
func NewGaugeWidget ¶
func NewGaugeWidget(title string, storage *Storage, colors []ui.Color) *GaugeWidget
func (*GaugeWidget) Buffer ¶
func (gw *GaugeWidget) Buffer() (*termui.Buffer, error)
type LineChartWidget ¶
LineChartWidget line chart widget
func NewLineChartWidget ¶
func NewLineChartWidget(title string, storages []*Storage, colors []ui.Color) *LineChartWidget
NewLineChartWidget create line chart widget
func (*LineChartWidget) Buffer ¶
func (lc *LineChartWidget) Buffer() (*termui.Buffer, error)
Buffer buffer for rendering
type PieChartWidget ¶
PieChartWidget line chart widget
func NewPieChartWidget ¶
func NewPieChartWidget(title string, storages []*Storage, colors []ui.Color) *PieChartWidget
NewPieChartWidget create line chart widget
func (*PieChartWidget) Buffer ¶
func (pc *PieChartWidget) Buffer() (*termui.Buffer, error)
Buffer buffer for rendering
type RingBuffer ¶
type RingBuffer struct {
// contains filtered or unexported fields
}
RingBuffer ring buffer
func (*RingBuffer) Slice ¶
func (r *RingBuffer) Slice(i, j int) []interface{}
Slice return slice of ring buffer
func (*RingBuffer) Tail ¶
func (r *RingBuffer) Tail(n int) []interface{}
Tail return last n elements of ring buffer
type ScatterPlotWidget ¶
type ScatterPlotWidget struct { ScatterPlot *widgets.Plot // contains filtered or unexported fields }
ScatterPlotWidget line chart widget
func NewScatterPlotWidget ¶
func NewScatterPlotWidget(title string, storages []*Storage) *ScatterPlotWidget
NewScatterPlotWidget create line chart widget
func (*ScatterPlotWidget) Buffer ¶
func (sp *ScatterPlotWidget) Buffer() (*termui.Buffer, error)
Buffer buffer for rendering
type Storage ¶
type Storage struct { DataLabels *RingBuffer Data *RingBuffer Histogram *gohistogram.NumericHistogram NumBins int Min float64 Max float64 Sum float64 Count int // contains filtered or unexported fields }
func (*Storage) SetBuffersize ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.