         for s2 in s1.values
           do (s2) =>
             @series3Domains[s1.key][s2.key] = maxScale
-
-
-
+  #
+  # Finds the maximum sum of all columns in series 2
+  # and scales it to the maximum height. All other columns
+  # are scaled relatively.
   buildSeriesDomains_count: =>
     maxSum = 0
     for s1 in @_data

    @background.attr('width', @width)
    @setSeries1Spacing()

  series1TotalWidth: -> @width / @_data.length

  renderSeries1: ->
    @series_1 = @svg.selectAll('.series1')
      .data(@_data)
    @series_1.enter()
      .append('g')
      .attr('class', 'series1')
    @series_1.transition().duration(500).attr('transform', (d,i) => "translate(#{@series1x[i]}, 0)")
    @series_1.exit().remove()

  buildSeriesDomains: ->
    @["buildSeriesDomains_#{@renderMode}"]()

  buildSeriesDomains_percentage: =>
    return @buildSeriesDomains_percentage_with_n_overrides() if @_custom_n_values
    @series3Domains = {}

        for s2 in s1.values
          do (s2) =>
            @series3Domains[s1.key][s2.key] = maxScale


  # Sets up <g> elements for each series_2 group within
  # each series_1 group. Places along x axis (relative to
  # parent series_1 group).
  renderSeries2: ->
    @series_2 = @series_1.selectAll('.series2').data((d) -> d.values)
    @series_2.enter()
      .append('g')
      .attr('class', 'column series2')
