Skip to content

Commit bba1e90

Browse files
committed
Use chart_class instead of class_chart (for user)
1 parent 7680fd2 commit bba1e90

File tree

2 files changed

+80
-96
lines changed

2 files changed

+80
-96
lines changed

lib/daru/view/adapters/googlecharts.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ def init_table(data=[], options={}, user_options={})
5151
# @param user_options [Hash] Extra options provided by the user like class_chart
5252
# @return [String] The class of the chart (Chart, Charteditor or Chartwrapper)
5353
def get_class_chart(user_options={})
54-
return 'Chart' if user_options[:class_chart].nil?
55-
user_options.delete(:class_chart).to_s.capitalize
54+
return 'Chart' if user_options[:chart_class].nil?
55+
user_options.delete(:chart_class).to_s.capitalize
5656
end
5757

5858
# @param data [Array, Daru::DataFrame, Daru::Vector, Daru::View::Table]

0 commit comments

Comments
 (0)