Module: Nyaplot::Diagrams::Connector

Includes:
Jsonizable
Defined in:
lib/bionya/diagram.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Jsonizable

#before_to_json, #get_property, included, #init_properties, #set_property, #to_json

Instance Attribute Details

#arc_heightNumeric

Returns The height of arc line.

Returns:

  • (Numeric)

    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])

#colorArray<String>

Returns colors in which texts are filled.

Returns:

  • (Array<String>)

    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_bySymbol

Returns the column label to decide how to fill sybmols.

Returns:

  • (Symbol)

    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])

#layerNumeric

Returns The number of layer where the plot is placed.

Returns:

  • (Numeric)

    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])

#shapeArray<String>

Returns the shape of symbols.

Returns:

  • (Array<String>)

    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_fillString

Returns The color of shape.

Returns:

  • (String)

    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_strokeString

Returns The color of stroke for shape.

Returns:

  • (String)

    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_widthNumeric

Returns The thickness of stroke for shape.

Returns:

  • (Numeric)

    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])

#sizeNumeric

Returns The size of shape.

Returns:

  • (Numeric)

    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_widthNumeric

Returns the width of stroke.

Returns:

  • (Numeric)

    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