lib/sol/base_chart.rb
#------------------------------------------------------------------------------------
# Base Mixin
# Set or get the group attribute of a chart. In dc a group is a crossfilter group. 
# Usually the group should be created from the particular dimension associated with the 
# same chart. If a value is given, then it will be used as the new group.
# 
# If no value specified then the current group will be returned. If name is specified 
# then it will be used to generate legend label.
#------------------------------------------------------------------------------------
Base Mixin
Set or get the group attribute of a chart. In dc a group is a crossfilter group.
Usually the group should be created from the particular dimension associated with the
same chart. If a value is given, then it will be used as the new group.

If no value specified then the current group will be returned. If name is specified
then it will be used to generate legend label.
Base Mixin Set or get the group attribute of a chart . In dc a group is a crossfilter group . Usually the group should be created from the particular dimension associated with the same chart . If a value is given then it will be used as the new group . If no value specified then the current group will be returned . If name is specified then it will be used to generate legend label .
def group(method, name = nil)
      @group_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
def group ( method , name = nil ) @group_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
Base Mixin
Set or get the group attribute of a chart.
Base Mixin Set or get the group attribute of a chart .
method
name