Versions in this module Expand all Collapse all v1 v1.4.1 Dec 1, 2021 v1.4.0 Sep 10, 2021 Changes in this version + const DownArrow + const UpArrow + type BarChart struct + BarColors []ui.Color + BarGap int + BarWidth int + Data []float64 + LabelStyles []ui.Style + Labels []string + MaxVal float64 + NumFormatter func(float64) string + NumStyles []ui.Style + func NewBarChart() *BarChart + func (b *BarChart) Draw(buf *ui.Buffer) + type CPUTableChart struct + ActiveBorderColor ui.Color + CellSize int + Data []float64 + DefaultBorderColor ui.Color + NumCols int + NumCores int + NumRows int + StatusColor []ui.Color + TopRow int + func NewCPUTableChart() *CPUTableChart + func (c *CPUTableChart) DisableCursor() + func (c *CPUTableChart) Draw(buf *ui.Buffer) + func (c *CPUTableChart) EnableCursor() + func (c *CPUTableChart) ScrollBottom() + func (c *CPUTableChart) ScrollDown() + func (c *CPUTableChart) ScrollHalfPageDown() + func (c *CPUTableChart) ScrollHalfPageUp() + func (c *CPUTableChart) ScrollPageDown() + func (c *CPUTableChart) ScrollPageUp() + func (c *CPUTableChart) ScrollToIndex(idx int) + func (c *CPUTableChart) ScrollTop() + func (c *CPUTableChart) ScrollUp() + type HorizontalBarChart struct + BarColors []ui.Color + BarGap int + BarWidth int + ColResizer func() + Data []float64 + LabelStyles []ui.Style + Labels []string + MaxVal float64 + func NewHorizontalBarChart() *HorizontalBarChart + func (h *HorizontalBarChart) Draw(buf *ui.Buffer) + type LineGraph struct + Data map[string][]float64 + DefaultLineColor ui.Color + HorizontalScale int + Labels map[string]string + LineColors map[string]ui.Color + MaxVal float64 + func NewLineGraph() *LineGraph + func (l *LineGraph) Draw(buf *ui.Buffer) + type ScrollableWidget interface + DisableCursor func() + EnableCursor func() + ScrollBottom func() + ScrollDown func() + ScrollHalfPageDown func() + ScrollHalfPageUp func() + ScrollPageDown func() + ScrollPageUp func() + ScrollTop func() + ScrollUp func() + type Sparkline struct + Data []float64 + LineColor ui.Color + MaxHeight int + MaxVal float64 + Reverse bool + Title string + TitleStyle ui.Style + func NewSparkline() *Sparkline + type SparklineGroup struct + Sparklines []*Sparkline + func NewSparklineGroup(sls ...*Sparkline) *SparklineGroup + func (s *SparklineGroup) Draw(buf *ui.Buffer) + type Table struct + ActiveBorderColor ui.Color + ColColor map[int]ui.Color + ColGap int + ColResizer func() + ColWidths []int + CursorColor ui.Color + DefaultBorderColor ui.Color + Header []string + HeaderStyle ui.Style + IsHelp bool + PadLeft int + RowStyle ui.Style + Rows [][]string + SelectedItem string + SelectedRow int + ShowCursor bool + ShowLocation bool + TopRow int + UniqueCol int + func NewTable() *Table + func (t *Table) DisableCursor() + func (t *Table) Draw(buf *ui.Buffer) + func (t *Table) EnableCursor() + func (t *Table) ScrollBottom() + func (t *Table) ScrollDown() + func (t *Table) ScrollHalfPageDown() + func (t *Table) ScrollHalfPageUp() + func (t *Table) ScrollPageDown() + func (t *Table) ScrollPageUp() + func (t *Table) ScrollToIndex(idx int) + func (t *Table) ScrollTop() + func (t *Table) ScrollUp()