Class: Daytona::Chart2D

Inherits:
Struct
  • Object
show all
Defined in:
lib/daytona/common/charts.rb

Direct Known Subclasses

BarChart, BoxAndWhiskerChart

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type: nil, title: nil, png: nil, elements: [], x_label: nil, y_label: nil) ⇒ Chart2D

Returns a new instance of Chart2D.



29
30
31
# File 'lib/daytona/common/charts.rb', line 29

def initialize(type: nil, title: nil, png: nil, elements: [], x_label: nil, y_label: nil)
  super
end

Instance Attribute Details

#elementsObject

Returns the value of attribute elements

Returns:

  • (Object)

    the current value of elements



28
29
30
# File 'lib/daytona/common/charts.rb', line 28

def elements
  @elements
end

#pngObject

Returns the value of attribute png

Returns:

  • (Object)

    the current value of png



28
29
30
# File 'lib/daytona/common/charts.rb', line 28

def png
  @png
end

#titleObject

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



28
29
30
# File 'lib/daytona/common/charts.rb', line 28

def title
  @title
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



28
29
30
# File 'lib/daytona/common/charts.rb', line 28

def type
  @type
end

#x_labelObject

Returns the value of attribute x_label

Returns:

  • (Object)

    the current value of x_label



28
29
30
# File 'lib/daytona/common/charts.rb', line 28

def x_label
  @x_label
end

#y_labelObject

Returns the value of attribute y_label

Returns:

  • (Object)

    the current value of y_label



28
29
30
# File 'lib/daytona/common/charts.rb', line 28

def y_label
  @y_label
end