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
22 23 24 |
# File 'lib/chartkick/helper.rb', line 22 def area_chart(data_source, **) chartkick_chart "AreaChart", data_source, end |
#bar_chart(data_source, **options) ⇒ Object
18 19 20 |
# File 'lib/chartkick/helper.rb', line 18 def (data_source, **) chartkick_chart "BarChart", data_source, end |
#column_chart(data_source, **options) ⇒ Object
14 15 16 |
# File 'lib/chartkick/helper.rb', line 14 def column_chart(data_source, **) chartkick_chart "ColumnChart", data_source, end |
#geo_chart(data_source, **options) ⇒ Object
30 31 32 |
# File 'lib/chartkick/helper.rb', line 30 def geo_chart(data_source, **) chartkick_chart "GeoChart", data_source, end |
#line_chart(data_source, **options) ⇒ Object
6 7 8 |
# File 'lib/chartkick/helper.rb', line 6 def line_chart(data_source, **) chartkick_chart "LineChart", data_source, end |
#pie_chart(data_source, **options) ⇒ Object
10 11 12 |
# File 'lib/chartkick/helper.rb', line 10 def pie_chart(data_source, **) chartkick_chart "PieChart", data_source, end |
#scatter_chart(data_source, **options) ⇒ Object
26 27 28 |
# File 'lib/chartkick/helper.rb', line 26 def scatter_chart(data_source, **) chartkick_chart "ScatterChart", data_source, end |
#timeline(data_source, **options) ⇒ Object
34 35 36 |
# File 'lib/chartkick/helper.rb', line 34 def timeline(data_source, **) chartkick_chart "Timeline", data_source, end |