Versions in this module Expand all Collapse all v3 v3.3.1 Dec 9, 2022 v3.2.0 Dec 9, 2022 Changes in this version + type BarChart struct + BarColors []Color + BarGap int + BarWidth int + Data []float64 + LabelStyles []Style + Labels []string + MaxVal float64 + NumFormatter func(float64) string + NumStyles []Style + func NewBarChart() *BarChart + func (self *BarChart) Draw(buf *Buffer) + type DrawDirection uint + const DrawLeft + const DrawRight + type Gauge struct + BarColor Color + Label string + LabelStyle Style + Percent int + func NewGauge() *Gauge + func (self *Gauge) Draw(buf *Buffer) + type Image struct + Image image.Image + Monochrome bool + MonochromeInvert bool + MonochromeThreshold uint8 + func NewImage(img image.Image) *Image + func (self *Image) Draw(buf *Buffer) + type List struct + Rows []string + SelectedRow int + SelectedRowStyle Style + TextStyle Style + WrapText bool + func NewList() *List + func (self *List) Draw(buf *Buffer) + func (self *List) ScrollAmount(amount int) + func (self *List) ScrollBottom() + func (self *List) ScrollDown() + func (self *List) ScrollHalfPageDown() + func (self *List) ScrollHalfPageUp() + func (self *List) ScrollPageDown() + func (self *List) ScrollPageUp() + func (self *List) ScrollTop() + func (self *List) ScrollUp() + type Paragraph struct + Text string + TextStyle Style + WrapText bool + func NewParagraph() *Paragraph + func (self *Paragraph) Draw(buf *Buffer) + type PieChart struct + AngleOffset float64 + Colors []Color + Data []float64 + LabelFormatter PieChartLabel + func NewPieChart() *PieChart + func (self *PieChart) Draw(buf *Buffer) + type PieChartLabel func(dataIndex int, currentValue float64) string + type Plot struct + AxesColor Color + Data [][]float64 + DataLabels []string + DotMarkerRune rune + DrawDirection DrawDirection + HorizontalScale int + LineColors []Color + Marker PlotMarker + MaxVal float64 + PlotType PlotType + ShowAxes bool + func NewPlot() *Plot + func (self *Plot) Draw(buf *Buffer) + type PlotMarker uint + const MarkerBraille + const MarkerDot + type PlotType uint + const LineChart + const ScatterPlot + type Sparkline struct + Data []float64 + LineColor Color + MaxHeight int + MaxVal float64 + Title string + TitleStyle Style + func NewSparkline() *Sparkline + type SparklineGroup struct + Sparklines []*Sparkline + func NewSparklineGroup(sls ...*Sparkline) *SparklineGroup + func (self *SparklineGroup) Draw(buf *Buffer) + type StackedBarChart struct + BarColors []Color + BarGap int + BarWidth int + Data [][]float64 + LabelStyles []Style + Labels []string + MaxVal float64 + NumFormatter func(float64) string + NumStyles []Style + func NewStackedBarChart() *StackedBarChart + func (self *StackedBarChart) Draw(buf *Buffer) + type TabPane struct + ActiveTabIndex int + ActiveTabStyle Style + InactiveTabStyle Style + TabNames []string + func NewTabPane(names ...string) *TabPane + func (self *TabPane) Draw(buf *Buffer) + func (self *TabPane) FocusLeft() + func (self *TabPane) FocusRight() + type Table struct + ColumnResizer func() + ColumnWidths []int + FillRow bool + RowSeparator bool + RowStyles map[int]Style + Rows [][]string + SelectedRow int + SelectedRowStyle Style + TextAlignment Alignment + TextStyle Style + func NewTable() *Table + func (self *Table) Draw(buf *Buffer) + func (self *Table) ScrollAmount(amount int) + func (self *Table) ScrollBottom() + func (self *Table) ScrollDown() + func (self *Table) ScrollHalfPageDown() + func (self *Table) ScrollHalfPageUp() + func (self *Table) ScrollPageDown() + func (self *Table) ScrollPageUp() + func (self *Table) ScrollTop() + func (self *Table) ScrollUp() + type Tree struct + SelectedRow int + SelectedRowStyle Style + TextStyle Style + WrapText bool + func NewTree() *Tree + func (self *Tree) Collapse() + func (self *Tree) CollapseAll() + func (self *Tree) Draw(buf *Buffer) + func (self *Tree) Expand() + func (self *Tree) ExpandAll() + func (self *Tree) ScrollAmount(amount int) + func (self *Tree) ScrollBottom() + func (self *Tree) ScrollDown() + func (self *Tree) ScrollHalfPageDown() + func (self *Tree) ScrollHalfPageUp() + func (self *Tree) ScrollPageDown() + func (self *Tree) ScrollPageUp() + func (self *Tree) ScrollTop() + func (self *Tree) ScrollUp() + func (self *Tree) SelectedNode() *TreeNode + func (self *Tree) SetNodes(nodes []*TreeNode) + func (self *Tree) ToggleExpand() + func (self *Tree) Walk(fn TreeWalkFn) + type TreeNode struct + Expanded bool + Nodes []*TreeNode + Value fmt.Stringer + type TreeWalkFn func(*TreeNode) bool