Module: Sol::Stack
- Defined in:
- lib/sol/stack.rb
Instance Method Summary collapse
-
#stack(group, method, name = nil) ⇒ Object
————————————————————————————.
Instance Method Details
#stack(group, method, name = nil) ⇒ Object
32 33 34 35 36 37 38 39 40 |
# File 'lib/sol/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 |