class CrystalCliGraph::Graph
- CrystalCliGraph::Graph
- Reference
- Object
Defined in:
crystal_cli_graph/graph.crConstant Summary
-
BAR_TOPPER =
"▁"
-
COLUMN_BODY =
"█"
Constructors
Instance Method Summary
- #data : Array(Int32)
- #generate
-
#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!
- #get_graph_key_chars : Array(String)
- #get_padding_columns_count(data : Array(Int32), max_width : Int32, labels : Bool) : Int32
Constructor Detail
def self.new(data : Array(Int32), options : Hash(Symbol, Bool | Int32 | String | Nil | Array(String)))
#
Instance Method Detail
def 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!
def get_padding_columns_count(data : Array(Int32), max_width : Int32, labels : Bool) : Int32
#