Documentation
¶
Index ¶
- func GraphUpdateCmd(data [][]float64, labels []string) tea.Cmd
- type GraphUpdateMsg
- type Model
- type Option
- func WithAxisColor(color int) Option
- func WithContainerStyle(style lipgloss.Style) Option
- func WithData(data [][]float64) Option
- func WithDimensions(width, height int) Option
- func WithHorizontalLabels(labels []string) Option
- func WithLabelColor(color int) Option
- func WithLineColors(colors []int) Option
- func WithMaxDataPoints(amount int) Option
- func WithShowTitle(show bool) Option
- func WithTitleStyle(style lipgloss.Style) Option
- type Styles
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GraphUpdateMsg ¶
type Model ¶
type Model struct {
Width int
Height int
Title string
Styles Styles
MaxDataPoints int
// contains filtered or unexported fields
}
func (*Model) SetSize ¶
func (m *Model) SetSize(msg tea.WindowSizeMsg)
type Option ¶
type Option func(*Model)
func WithAxisColor ¶ added in v0.0.4
func WithContainerStyle ¶
func WithDimensions ¶ added in v0.0.4
func WithHorizontalLabels ¶ added in v0.0.4
func WithLabelColor ¶ added in v0.0.4
func WithLineColors ¶ added in v0.0.4
func WithMaxDataPoints ¶ added in v0.0.3
func WithShowTitle ¶
func WithTitleStyle ¶
Click to show internal directories.
Click to hide internal directories.