Module: Chartkick::Helper

Defined in:
lib/chartkick/helper.rb

Instance Method Summary collapse

Instance Method Details

#area_chart(data_source, **options) ⇒ Object


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

def area_chart(data_source, **options)
  chartkick_chart "AreaChart", data_source, options
end

#bar_chart(data_source, **options) ⇒ Object


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

def bar_chart(data_source, **options)
  chartkick_chart "BarChart", data_source, options
end

#column_chart(data_source, **options) ⇒ Object


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

def column_chart(data_source, **options)
  chartkick_chart "ColumnChart", data_source, options
end

#geo_chart(data_source, **options) ⇒ Object


30
31
32
# File 'lib/chartkick/helper.rb', line 30

def geo_chart(data_source, **options)
  chartkick_chart "GeoChart", data_source, options
end

#line_chart(data_source, **options) ⇒ Object


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

def line_chart(data_source, **options)
  chartkick_chart "LineChart", data_source, options
end

#pie_chart(data_source, **options) ⇒ Object


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

def pie_chart(data_source, **options)
  chartkick_chart "PieChart", data_source, options
end

#scatter_chart(data_source, **options) ⇒ Object


26
27
28
# File 'lib/chartkick/helper.rb', line 26

def scatter_chart(data_source, **options)
  chartkick_chart "ScatterChart", data_source, options
end

#timeline(data_source, **options) ⇒ Object


34
35
36
# File 'lib/chartkick/helper.rb', line 34

def timeline(data_source, **options)
  chartkick_chart "Timeline", data_source, options
end