Class: Quby::Questionnaires::DSL::BarChartBuilder

Inherits:
ChartBuilder
  • Object
show all
Defined in:
lib/quby/questionnaires/dsl/charting/bar_chart_builder.rb

Instance Method Summary collapse

Methods inherited from ChartBuilder

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

Constructor Details

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

Instance Method Details

#plotline(value, color) ⇒ Object



12
13
14
# File 'lib/quby/questionnaires/dsl/charting/bar_chart_builder.rb', line 12

def plotline(value, color)
  @chart.plotlines << {value: value, color: color, width: 1, zIndex: 3}
end