Module: Chartkick::Helper
- Defined in:
- lib/chartkick/helper.rb
Instance Method Summary collapse
- #area_chart(data_source, options = {}) ⇒ Object
- #bar_chart(data_source, options = {}) ⇒ Object
- #column_chart(data_source, options = {}) ⇒ Object
- #line_chart(data_source, options = {}) ⇒ Object
- #pie_chart(data_source, options = {}) ⇒ Object
Instance Method Details
#area_chart(data_source, options = {}) ⇒ Object
23 24 25 |
# File 'lib/chartkick/helper.rb', line 23 def area_chart(data_source, = {}) chartkick_chart "AreaChart", data_source, end |
#bar_chart(data_source, options = {}) ⇒ Object
19 20 21 |
# File 'lib/chartkick/helper.rb', line 19 def (data_source, = {}) chartkick_chart "BarChart", data_source, end |
#column_chart(data_source, options = {}) ⇒ Object
15 16 17 |
# File 'lib/chartkick/helper.rb', line 15 def column_chart(data_source, = {}) chartkick_chart "ColumnChart", data_source, end |
#line_chart(data_source, options = {}) ⇒ Object
7 8 9 |
# File 'lib/chartkick/helper.rb', line 7 def line_chart(data_source, = {}) chartkick_chart "LineChart", data_source, end |
#pie_chart(data_source, options = {}) ⇒ Object
11 12 13 |
# File 'lib/chartkick/helper.rb', line 11 def pie_chart(data_source, = {}) chartkick_chart "PieChart", data_source, end |