 
   currentFilter: ->
     @_currentFilter or= @series_2_domain()[0]
+
+  setFilter: (filter) ->
+    @_currentFilter = filter
 
 
 

  renderSeries: ->
    polygons = @polygons.selectAll('path.polygon')
      .data(@polygonData())

    polygons.enter()
      .append('path')
      .attr('class', 'polygon')

      .transition().duration(1000)
      .attr('d', (d) => @polygon(d.points))
      .style('fill', (d) => @colors(d.key))
    polygons.exit().remove()

  polygonData: ->
    (for d in @_data
