Class: Quby::Compiler::DSL::LineChartBuilder

Inherits:
ChartBuilder show all
Defined in:
lib/quby/compiler/dsl/charting/line_chart_builder.rb

Instance Method Summary collapse

Methods inherited from ChartBuilder

#build, chart_class, #chart_type, #initialize, #plot, #plotband, #plotline, #range, set_chart_class, #tick_interval, #title, #y_categories, #y_range_categories

Constructor Details

This class inherits a constructor from Quby::Compiler::DSL::ChartBuilder

Instance Method Details

#baseline(value) ⇒ Object



20
21
22
# File 'lib/quby/compiler/dsl/charting/line_chart_builder.rb', line 20

def baseline(value)
  @chart.baseline = value
end

#clinically_relevant_change(value) ⇒ Object



24
25
26
# File 'lib/quby/compiler/dsl/charting/line_chart_builder.rb', line 24

def clinically_relevant_change(value)
  @chart.clinically_relevant_change = value
end

#tonality(value) ⇒ Object



16
17
18
# File 'lib/quby/compiler/dsl/charting/line_chart_builder.rb', line 16

def tonality(value)
  @chart.tonality = value
end

#validate!Object



28
29
30
# File 'lib/quby/compiler/dsl/charting/line_chart_builder.rb', line 28

def validate!
  fail "Chart #{@chart.key} has no range specified" unless @chart.y_range
end

#y_axis_label(label) ⇒ Object



12
13
14
# File 'lib/quby/compiler/dsl/charting/line_chart_builder.rb', line 12

def y_axis_label(label)
  @chart.y_label = label
end