Class: Quby::Questionnaires::Entities::Charting::BarChart
- 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
-
#initialize(key, plotlines: nil, **kwargs) ⇒ BarChart
constructor
A new instance of BarChart.
Methods inherited from Chart
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
#plotlines ⇒ Array
11 12 13 |
# File 'lib/quby/questionnaires/entities/charting/bar_chart.rb', line 11 def plotlines @plotlines end |