class

CrystalCliGraph::Graph

Inherits Reference < Object

Constants

BAR_TOPPER = "▁"
COLUMN_BODY = "█"

Constructors

new(data : Array(Int32), options : Hash(Symbol, Bool | Int32 | String | Nil | Array(String)))
Source

Instance methods

data
Source
generate
Source
generate_columns_from_data(data : Array(Int32), fit_min : Bool, max_height : Int32, y_axis_label : String | Nil, max_width : Int32, column_labels : Array(String)) : Array(Column)

TODO REFACTOR ME! OMG SUCH COMPLEXITY!

Source
get_graph_key_chars
Source
get_padding_columns_count(data : Array(Int32), max_width : Int32, labels : Bool) : Int32
Source