class CrystalCliGraph::Graph

Defined in:

crystal_cli_graph/graph.cr

Constant Summary

BAR_TOPPER = "▁"
COLUMN_BODY = "█"

Constructors

Instance Method Summary

Constructor Detail

def self.new(data : Array(Int32), options : Hash(Symbol, Bool | Int32 | String | Nil | Array(String))) #

[View source]

Instance Method Detail

def data : Array(Int32) #

[View source]
def generate #

[View source]
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!


[View source]
def get_graph_key_chars : Array(String) #

[View source]
def get_padding_columns_count(data : Array(Int32), max_width : Int32, labels : Bool) : Int32 #

[View source]