Class: Quby::Questionnaires::Entities::Charting::LineChart
- Defined in:
- lib/quby/questionnaires/entities/charting/line_chart.rb
Instance Attribute Summary collapse
- #baseline ⇒ Object
- #clinically_relevant_change ⇒ Float
- #tonality ⇒ Symbol
-
#y_label ⇒ String
@deprecated, not used anymore.
Attributes inherited from Chart
#chart_type, #key, #plotbands, #plotlines, #plottables, #tick_interval, #title, #y_categories, #y_range, #y_range_categories
Instance Method Summary collapse
-
#initialize(key, y_label: nil, tonality: :lower_is_better, baseline: nil, clinically_relevant_change: nil, **kwargs) ⇒ LineChart
constructor
A new instance of LineChart.
Methods inherited from Chart
Constructor Details
#initialize(key, y_label: nil, tonality: :lower_is_better, baseline: nil, clinically_relevant_change: nil, **kwargs) ⇒ LineChart
Returns a new instance of LineChart.
23 24 25 26 27 28 29 |
# File 'lib/quby/questionnaires/entities/charting/line_chart.rb', line 23 def initialize(key, y_label: nil, tonality: :lower_is_better, baseline: nil, clinically_relevant_change: nil, **kwargs) super(key, **kwargs) self.y_label = y_label self.tonality = tonality self.baseline = baseline self.clinically_relevant_change = clinically_relevant_change end |
Instance Attribute Details
#baseline ⇒ Object
31 32 33 |
# File 'lib/quby/questionnaires/entities/charting/line_chart.rb', line 31 def baseline @baseline_proc ||= make_baseline_proc end |
#clinically_relevant_change ⇒ Float
21 22 23 |
# File 'lib/quby/questionnaires/entities/charting/line_chart.rb', line 21 def clinically_relevant_change @clinically_relevant_change end |
#tonality ⇒ Symbol
15 16 17 |
# File 'lib/quby/questionnaires/entities/charting/line_chart.rb', line 15 def tonality @tonality end |
#y_label ⇒ String
@deprecated, not used anymore
12 13 14 |
# File 'lib/quby/questionnaires/entities/charting/line_chart.rb', line 12 def y_label @y_label end |