Module: Nyaplot::Diagrams::Connector
- Includes:
- Jsonizable
- Defined in:
- lib/bionya/diagram.rb
Instance Attribute Summary collapse
-
#arc_height ⇒ Numeric
The height of arc line.
-
#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.
-
#shape ⇒ Array<String>
The shape of symbols.
-
#shape_fill ⇒ String
The color of shape.
-
#shape_stroke ⇒ String
The color of stroke for shape.
-
#shape_stroke_width ⇒ Numeric
The thickness of stroke for shape.
-
#size ⇒ Numeric
The size of shape.
-
#stroke_width ⇒ Numeric
The width of stroke.
Instance Method Summary collapse
Methods included from Jsonizable
#before_to_json, #get_property, included, #init_properties, #set_property, #to_json
Instance Attribute Details
#arc_height ⇒ Numeric
Returns The height of arc line.
79 |
# File 'lib/bionya/diagram.rb', line 79 define_group_properties(:options, [:color, :fill_by, :from, :to, :shape, :stroke_width, :size, :shape_fill, :shape_stroke, :shape_stroke_width, :arc_height, :layer]) |
#color ⇒ Array<String>
Returns colors in which texts are filled.
79 |
# File 'lib/bionya/diagram.rb', line 79 define_group_properties(:options, [:color, :fill_by, :from, :to, :shape, :stroke_width, :size, :shape_fill, :shape_stroke, :shape_stroke_width, :arc_height, :layer]) |
#fill_by ⇒ Symbol
Returns the column label to decide how to fill sybmols.
79 |
# File 'lib/bionya/diagram.rb', line 79 define_group_properties(:options, [:color, :fill_by, :from, :to, :shape, :stroke_width, :size, :shape_fill, :shape_stroke, :shape_stroke_width, :arc_height, :layer]) |
#layer ⇒ Numeric
Returns The number of layer where the plot is placed.
79 |
# File 'lib/bionya/diagram.rb', line 79 define_group_properties(:options, [:color, :fill_by, :from, :to, :shape, :stroke_width, :size, :shape_fill, :shape_stroke, :shape_stroke_width, :arc_height, :layer]) |
#shape ⇒ Array<String>
Returns the shape of symbols.
79 |
# File 'lib/bionya/diagram.rb', line 79 define_group_properties(:options, [:color, :fill_by, :from, :to, :shape, :stroke_width, :size, :shape_fill, :shape_stroke, :shape_stroke_width, :arc_height, :layer]) |
#shape_fill ⇒ String
Returns The color of shape.
79 |
# File 'lib/bionya/diagram.rb', line 79 define_group_properties(:options, [:color, :fill_by, :from, :to, :shape, :stroke_width, :size, :shape_fill, :shape_stroke, :shape_stroke_width, :arc_height, :layer]) |
#shape_stroke ⇒ String
Returns The color of stroke for shape.
79 |
# File 'lib/bionya/diagram.rb', line 79 define_group_properties(:options, [:color, :fill_by, :from, :to, :shape, :stroke_width, :size, :shape_fill, :shape_stroke, :shape_stroke_width, :arc_height, :layer]) |
#shape_stroke_width ⇒ Numeric
Returns The thickness of stroke for shape.
79 |
# File 'lib/bionya/diagram.rb', line 79 define_group_properties(:options, [:color, :fill_by, :from, :to, :shape, :stroke_width, :size, :shape_fill, :shape_stroke, :shape_stroke_width, :arc_height, :layer]) |
#size ⇒ Numeric
Returns The size of shape.
79 |
# File 'lib/bionya/diagram.rb', line 79 define_group_properties(:options, [:color, :fill_by, :from, :to, :shape, :stroke_width, :size, :shape_fill, :shape_stroke, :shape_stroke_width, :arc_height, :layer]) |
#stroke_width ⇒ Numeric
Returns the width of stroke.
79 |
# File 'lib/bionya/diagram.rb', line 79 define_group_properties(:options, [:color, :fill_by, :from, :to, :shape, :stroke_width, :size, :shape_fill, :shape_stroke, :shape_stroke_width, :arc_height, :layer]) |
Instance Method Details
#process_data(df, labels) ⇒ Object
81 82 83 84 |
# File 'lib/bionya/diagram.rb', line 81 def process_data(df, labels) from(labels[0]) to(labels[1]) end |