Module: Nyaplot::Diagrams::Labels

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Jsonizable

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

Instance Attribute Details

#colorArray<String>

Returns colors in which texts are filled

Returns:

  • (Array<String>)

    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_bySymbol

Returns the column label to decide how to fill sybmols

Returns:

  • (Symbol)

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

#layerNumeric

Returns The number of layer where the plot is placed

Returns:

  • (Numeric)

    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_widthNumeric

Returns the width of stroke

Returns:

  • (Numeric)

    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_sizeNumeric

Returns The size of text

Returns:

  • (Numeric)

    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