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)
SourceInstance methods
add_row!(bars : Array(Float64), color : Symbol | Int32 | UInt32 | Tuple(Int32, Int32, Int32) | Nil = nil) : self
Sourceadd_row!(bar : Float64, color : Symbol | Int32 | UInt32 | Tuple(Int32, Int32, Int32) | Nil = nil) : self
Sourcebars
Sourceblank
Sourcecolors
Sourceformatter
Sourcemax_len
Sourcemaximum
Sourcencols
Sourcenrows
SourcePreprocessing hook (returns cleanup proc). Override in subclasses that need it.
Print a single row. Implementations add ANSI color via use_color.
symbols
Sourcevisible?
Sourcexscale
Source