Class: Quby::Questionnaires::Entities::Charting::BarChart

Inherits:
Chart
  • Object
show all
Defined in:
lib/quby/questionnaires/entities/charting/bar_chart.rb

Instance Attribute Summary collapse

Attributes inherited from Chart

#chart_type, #key, #plottables, #tick_interval, #title, #y_categories, #y_range, #y_range_categories

Instance Method Summary collapse

Methods inherited from Chart

#default_y_range, #type

Constructor Details

#initialize(key, plotlines: nil, **kwargs) ⇒ BarChart

Returns a new instance of BarChart.



13
14
15
16
# File 'lib/quby/questionnaires/entities/charting/bar_chart.rb', line 13

def initialize(key, plotlines: nil, **kwargs)
  super(key, **kwargs)
  self.plotlines = plotlines || []
end

Instance Attribute Details

#plotlinesArray

Returns:

  • (Array)


11
12
13
# File 'lib/quby/questionnaires/entities/charting/bar_chart.rb', line 11

def plotlines
  @plotlines
end