Method: Nyaplot::CircularPlot#add

Defined in:
lib/bionya/plot.rb

#add(layer, type, *labels) ⇒ Diagram

Add diagram to the plot



63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'lib/bionya/plot.rb', line 63

def add(layer, type, *labels)
  if(layer>0)
    @outer_num += 1
  elsif
    @inner_num += 1
  end

  diagram = Diagram.new(@df, type, labels.push(@nested_label))
  diagram.layer(layer)
  @axis = diagram.x
  self.diagrams.push(diagram)
  return diagram
end