lib/chartkick/helper.rb in chartkick-1.1.3 vs lib/chartkick/helper.rb in chartkick-1.2.0

- old
+ new

@@ -14,9 +14,17 @@ def column_chart(data_source, options = {}) chartkick_chart "ColumnChart", data_source, options end + def bar_chart(data_source, options = {}) + chartkick_chart "BarChart", data_source, options + end + + def area_chart(data_source, options = {}) + chartkick_chart "AreaChart", data_source, options + end + private def chartkick_chart(klass, data_source, options, &block) @chartkick_chart_id ||= 0 options = options.dup