Class: Daytona::PointChart

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

Direct Known Subclasses

LineChart, ScatterChart

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type: nil, title: nil, png: nil, elements: [], x_label: nil, y_label: nil, x_ticks: nil, y_ticks: nil, x_tick_labels: nil, y_tick_labels: nil, x_scale: nil, y_scale: nil) ⇒ PointChart

Returns a new instance of PointChart.



37
38
39
40
41
# File 'lib/daytona/common/charts.rb', line 37

def initialize(type: nil, title: nil, png: nil, elements: [], x_label: nil, y_label: nil,
               x_ticks: nil, y_ticks: nil, x_tick_labels: nil, y_tick_labels: nil,
               x_scale: nil, y_scale: nil)
  super
end

Instance Attribute Details

#elementsObject

Returns the value of attribute elements

Returns:

  • (Object)

    the current value of elements



34
35
36
# File 'lib/daytona/common/charts.rb', line 34

def elements
  @elements
end

#pngObject

Returns the value of attribute png

Returns:

  • (Object)

    the current value of png



34
35
36
# File 'lib/daytona/common/charts.rb', line 34

def png
  @png
end

#titleObject

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



34
35
36
# File 'lib/daytona/common/charts.rb', line 34

def title
  @title
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



34
35
36
# File 'lib/daytona/common/charts.rb', line 34

def type
  @type
end

#x_labelObject

Returns the value of attribute x_label

Returns:

  • (Object)

    the current value of x_label



34
35
36
# File 'lib/daytona/common/charts.rb', line 34

def x_label
  @x_label
end

#x_scaleObject

Returns the value of attribute x_scale

Returns:

  • (Object)

    the current value of x_scale



34
35
36
# File 'lib/daytona/common/charts.rb', line 34

def x_scale
  @x_scale
end

#x_tick_labelsObject

Returns the value of attribute x_tick_labels

Returns:

  • (Object)

    the current value of x_tick_labels



34
35
36
# File 'lib/daytona/common/charts.rb', line 34

def x_tick_labels
  @x_tick_labels
end

#x_ticksObject

Returns the value of attribute x_ticks

Returns:

  • (Object)

    the current value of x_ticks



34
35
36
# File 'lib/daytona/common/charts.rb', line 34

def x_ticks
  @x_ticks
end

#y_labelObject

Returns the value of attribute y_label

Returns:

  • (Object)

    the current value of y_label



34
35
36
# File 'lib/daytona/common/charts.rb', line 34

def y_label
  @y_label
end

#y_scaleObject

Returns the value of attribute y_scale

Returns:

  • (Object)

    the current value of y_scale



34
35
36
# File 'lib/daytona/common/charts.rb', line 34

def y_scale
  @y_scale
end

#y_tick_labelsObject

Returns the value of attribute y_tick_labels

Returns:

  • (Object)

    the current value of y_tick_labels



34
35
36
# File 'lib/daytona/common/charts.rb', line 34

def y_tick_labels
  @y_tick_labels
end

#y_ticksObject

Returns the value of attribute y_ticks

Returns:

  • (Object)

    the current value of y_ticks



34
35
36
# File 'lib/daytona/common/charts.rb', line 34

def y_ticks
  @y_ticks
end