chart

package
v0.0.0-...-055ce89 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Colors

type Colors struct {
	Primary lipgloss.Color
	Text    lipgloss.Color
	Bearish lipgloss.Color
	Bullish lipgloss.Color
}

type Model

type Model struct {
	Width  int
	Height int

	Title   string
	Candles api.Candles
	Range   Range
	Colors  Colors
	// contains filtered or unexported fields
}

func New

func New(width int, height int, title string, colors Colors, candles api.Candles, range_ Range) Model

func (*Model) Draw

func (m *Model) Draw()

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model) View

func (m Model) View() string

type Range

type Range struct {
	Min float32
	Max float32
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL