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
- #geo_chart(data_source, **options) ⇒ Object
- #line_chart(data_source, **options) ⇒ Object
- #pie_chart(data_source, **options) ⇒ Object
- #scatter_chart(data_source, **options) ⇒ Object
- #timeline(data_source, **options) ⇒ Object
Instance Method Details
#area_chart(data_source, **options) ⇒ Object
19 20 21 |
# File 'lib/chartkick/helper.rb', line 19 def area_chart(data_source, **) chartkick_chart "AreaChart", data_source, ** end |
#bar_chart(data_source, **options) ⇒ Object
15 16 17 |
# File 'lib/chartkick/helper.rb', line 15 def (data_source, **) chartkick_chart "BarChart", data_source, ** end |
#column_chart(data_source, **options) ⇒ Object
11 12 13 |
# File 'lib/chartkick/helper.rb', line 11 def column_chart(data_source, **) chartkick_chart "ColumnChart", data_source, ** end |
#geo_chart(data_source, **options) ⇒ Object
27 28 29 |
# File 'lib/chartkick/helper.rb', line 27 def geo_chart(data_source, **) chartkick_chart "GeoChart", data_source, ** end |
#line_chart(data_source, **options) ⇒ Object
3 4 5 |
# File 'lib/chartkick/helper.rb', line 3 def line_chart(data_source, **) chartkick_chart "LineChart", data_source, ** end |
#pie_chart(data_source, **options) ⇒ Object
7 8 9 |
# File 'lib/chartkick/helper.rb', line 7 def pie_chart(data_source, **) chartkick_chart "PieChart", data_source, ** end |
#scatter_chart(data_source, **options) ⇒ Object
23 24 25 |
# File 'lib/chartkick/helper.rb', line 23 def scatter_chart(data_source, **) chartkick_chart "ScatterChart", data_source, ** end |
#timeline(data_source, **options) ⇒ Object
31 32 33 |
# File 'lib/chartkick/helper.rb', line 31 def timeline(data_source, **) chartkick_chart "Timeline", data_source, ** end |