class

UnicodePlot::BarplotGraphics

Inherits UnicodePlot::GraphicsArea < Reference < Object

Constructors

new(bars : Array(Float64), char_width : Int32, *, symbols : Array(Char) = ['■'], color : Symbol | Int32 | Tuple(Int32, Int32, Int32) | Array(Symbol) | Array(Int32) | Array(UInt32) | UInt32 = :green, maximum : Float64 | Nil = nil, formatter : Proc(Float64, String) | Nil = nil, visible : Bool = true, xscale : Symbol | Proc(Float64, Float64) = :identity)
Source

Instance methods

add_row!(bars : Array(Float64), color : Symbol | Int32 | UInt32 | Tuple(Int32, Int32, Int32) | Nil = nil) : self
Source
add_row!(bar : Float64, color : Symbol | Int32 | UInt32 | Tuple(Int32, Int32, Int32) | Nil = nil) : self
Source
bars
Source
blank
Source
colors
Source
formatter
Source
max_len
Source
max_len=(max_len : Int32)
Source
max_val

Computed per-render (set in preprocess, cleared in cleanup)

Source
max_val=(max_val : Float64)

Computed per-render (set in preprocess, cleared in cleanup)

Source
maximum
Source
ncols
Source
nrows
Source
preprocess(io : IO) : GraphicsArea ->

Preprocessing hook (returns cleanup proc). Override in subclasses that need it.

Source
symbols
Source
visible?
Source
xscale
Source