class

Ori::Sparkline

Inherits Ori::Node < Reference < Object

Constants

BLOCK_CHARS = {' ', '▁', '▂', '▃', '▄', '▅', '▆', '▇', '█'}

Constructors

new(data : Array(Float64) = [] of Float64, max : Float64 = 0.0, auto_max : Bool = true, style : Ori::S = Ori::S.none)
Source

Instance methods

content_height
Source
content_width
Source
data
Source
focusable?
Source
push(value : Float64) : Nil
Source
push_all(values : Array(Float64)) : Nil
Source
render(io : IO) : Nil
Source
render_screen(screen : Ori::Screen) : Nil
Source