class

CrystalCliGraph::Legend

Inherits Reference < Object

Constructors

new(data : Array(Int32), labels : Array(String), key_chars : Array(String), max_width : Int32)

Warning: assumes there will be a space between each word. This is not a valid assumption for all languages

Source

Instance methods

data
Source
generate
Source
generate_horizantal_edge(max_width : Int32) : String
Source
generate_legend_row(legend : String, key : String, max_width : Int32, max_key_chars : Int32) : Array(String)
Source
labels
Source
max_width
Source
pad_rows_to_width(rows : Array(String), largest_legend_size : Int32) : Array(String)
Source
wrap_string_to_width(string : String, width : Int32) : Array(String)
Source