Module: Nyaplot::Diagrams::Labels
- Includes:
- Jsonizable
- Defined in:
- lib/bionya/diagram.rb
Instance Attribute Summary collapse
-
#color ⇒ Array<String>
Colors in which texts are filled.
-
#fill_by ⇒ Symbol
The column label to decide how to fill sybmols.
-
#layer ⇒ Numeric
The number of layer where the plot is placed.
-
#stroke_width ⇒ Numeric
The width of stroke.
-
#text_size ⇒ Numeric
The size of text.
Instance Method Summary collapse
Methods included from Jsonizable
#before_to_json, #get_property, included, #init_properties, #set_property, #to_json
Instance Attribute Details
#color ⇒ Array<String>
Returns colors in which texts are filled.
49 |
# File 'lib/bionya/diagram.rb', line 49 define_group_properties(:options, [:color, :fill_by, :x, :text, :stroke_width, :layer, :text_size]) |
#fill_by ⇒ Symbol
Returns the column label to decide how to fill sybmols.
49 |
# File 'lib/bionya/diagram.rb', line 49 define_group_properties(:options, [:color, :fill_by, :x, :text, :stroke_width, :layer, :text_size]) |
#layer ⇒ Numeric
Returns The number of layer where the plot is placed.
49 |
# File 'lib/bionya/diagram.rb', line 49 define_group_properties(:options, [:color, :fill_by, :x, :text, :stroke_width, :layer, :text_size]) |
#stroke_width ⇒ Numeric
Returns the width of stroke.
49 |
# File 'lib/bionya/diagram.rb', line 49 define_group_properties(:options, [:color, :fill_by, :x, :text, :stroke_width, :layer, :text_size]) |
#text_size ⇒ Numeric
Returns The size of text.
49 |
# File 'lib/bionya/diagram.rb', line 49 define_group_properties(:options, [:color, :fill_by, :x, :text, :stroke_width, :layer, :text_size]) |
Instance Method Details
#process_data(df, labels) ⇒ Object
51 52 53 54 |
# File 'lib/bionya/diagram.rb', line 51 def process_data(df, labels) x(labels[0]) text(labels[1]) end |