Module: Chartkick::Helper

Defined in:
lib/chartkick/helper.rb

Instance Method Summary collapse

Instance Method Details

#area_chart(data_source, **options) ⇒ Object



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

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

#bar_chart(data_source, **options) ⇒ Object



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

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

#column_chart(data_source, **options) ⇒ Object



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

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

#geo_chart(data_source, **options) ⇒ Object



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

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

#line_chart(data_source, **options) ⇒ Object



3
4
5
# File 'lib/chartkick/helper.rb', line 3

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

#pie_chart(data_source, **options) ⇒ Object



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

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

#scatter_chart(data_source, **options) ⇒ Object



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

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

#timeline(data_source, **options) ⇒ Object



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

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