     @_render(args...)
     @afterRender()
 
-  beforeRender: -> null
+  beforeRender: ->
+    @_hide_columns_below_n(@_n_threshold)
+
   _render: -> null
   afterRender: ->
     @_adjust_svg_dimensions()


  series_1_domain: (d) ->
    @accessor('series_1_domain', d)
    #if d
    #@_series_1_domain = d
    #return @
    #@_series_1_domain

  series_2_domain: (d) ->
    @accessor('series_2_domain', d)
    #if d
    #@_series_2_domain = d
    #return @
    #@_series_2_domain

  series_3_domain: (d) ->
    @accessor('series_3_domain', d)
    #if d
    #  @_series_3_domain = d
    #  return @
    #@_series_3_domain

  legend_labels: (d) ->
    @accessor('legend_labels', d)
    #if d
    #@_legend_labels = d
    #return @
    #@_legend_labels


  initializeSvg: (element = 'body') ->
    @outer = d3.select(@element).append('div').attr('class', 'zvg')

  key_function: (data) -> data.key
  values_function: (data) -> data.values

  adjustSeries1EndLabels: ->
    # initial condition is horizontal labels with text-anchor: middle
    end_index = @series1LabelMap.length - 1
