charts

package module
v0.0.0-...-9bf0e97 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Line

type Line[T comparable] struct {
	X []T
	Y []float64

	RenderSymbol  func(lastValue float64, isLastEmpty bool, value float64, isEmpty bool, symbol string) string
	RenderEmpty   func(lastValue float64, isLastEmpty bool, value float64, isEmpty bool, empty string) string
	RenderXBorder func(isEmpty bool, x string) string
	// contains filtered or unexported fields
}

func New

func New[T comparable](x []T, y []float64, maxYLen int) *Line[T]

func (*Line[T]) Render

func (l *Line[T]) Render() string

func (*Line[T]) SetSize

func (l *Line[T]) SetSize(width, height int)

func (*Line[T]) SetYPrecision

func (l *Line[T]) SetYPrecision(precision int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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