Module: Sol::Stack
- Defined in:
- lib/charts/stack.rb
Instance Method Summary (collapse)
-
- (Object) stack(group, method, name = nil)
————————————————————————————.
Instance Method Details
- (Object) stack(group, method, name = nil)
32 33 34 35 36 37 38 39 40 |
# File 'lib/charts/stack.rb', line 32 def stack(group, method, name = nil) @stack_name = @name.downcase + "Group" @group = "var #{@group_name} = #{@dim}.group().#{Sol.camelcase(method.to_s)}(function(d) {return d[\"#{@y_column}\"];});" @properties["group"] = @group_name return self end |