AddItem | func (c *BarChart) AddItem(item BarItem) *BarChart | AddItem appends a bar item |
Clear | func (c *BarChart) Clear() *BarChart | Clear removes all items |
GetFieldHeight | func (c *BarChart) GetFieldHeight() int | GetFieldHeight returns preferred height |
SetAutoScale | func (c *BarChart) SetAutoScale(enabled bool) *BarChart | SetAutoScale enables/disables automatic range |
SetBarGap | func (c *BarChart) SetBarGap(gap int) *BarChart | SetBarGap sets gap between bars |
SetBarWidth | func (c *BarChart) SetBarWidth(width int) *BarChart | SetBarWidth sets bar width (vertical orientation) |
SetChars | func (c *BarChart) SetChars(filled, empty rune) *BarChart | SetChars sets filled and empty bar characters |
SetItems | func (c *BarChart) SetItems(items ...BarItem) *BarChart | SetItems sets all bar items |
SetOnSelect | func (c *BarChart) SetOnSelect(fn func(index int, item BarItem)) *BarChart | SetOnSelect sets callback for bar selection |
SetOrientation | func (c *BarChart) SetOrientation(o BarOrientation) *BarChart | SetOrientation sets horizontal or vertical bars |
SetRange | func (c *BarChart) SetRange(min, max float64) *BarChart | SetRange sets fixed value range (disables auto-scale) |
SetShowLabels | func (c *BarChart) SetShowLabels(show bool) *BarChart | SetShowLabels shows/hides bar labels |
SetShowValues | func (c *BarChart) SetShowValues(show bool) *BarChart | SetShowValues shows/hides values on bars |
SetTitle | func (c *BarChart) SetTitle(title string) *BarChart | SetTitle sets the chart title |
SetValueFormat | func (c *BarChart) SetValueFormat(format string) *BarChart | SetValueFormat sets printf format for values |
SetValues | func (c *BarChart) SetValues(values []float64, labels []string) *BarChart | SetValues sets values with auto-generated labels |