Module: Chartkick::Helper

Defined in:
lib/chartkick/helper.rb

Instance Method Summary collapse

Instance Method Details

#area_chart(data_source, options = {}) ⇒ Object



23
24
25
# File 'lib/chartkick/helper.rb', line 23

def area_chart(data_source, options = {})
  chartkick_chart "AreaChart", data_source, options
end

#bar_chart(data_source, options = {}) ⇒ Object



19
20
21
# File 'lib/chartkick/helper.rb', line 19

def bar_chart(data_source, options = {})
  chartkick_chart "BarChart", data_source, options
end

#column_chart(data_source, options = {}) ⇒ Object



15
16
17
# File 'lib/chartkick/helper.rb', line 15

def column_chart(data_source, options = {})
  chartkick_chart "ColumnChart", data_source, options
end

#line_chart(data_source, options = {}) ⇒ Object



7
8
9
# File 'lib/chartkick/helper.rb', line 7

def line_chart(data_source, options = {})
  chartkick_chart "LineChart", data_source, options
end

#pie_chart(data_source, options = {}) ⇒ Object



11
12
13
# File 'lib/chartkick/helper.rb', line 11

def pie_chart(data_source, options = {})
  chartkick_chart "PieChart", data_source, options
end