       selector: '.authority'
       tooltipViewFactory: => new TextView text: 'Total votes'
 
-  _makeTooltipForPath: (type, fraction, selector) ->
+  _makeTooltipForPath: (type, opinionStyle, selector) ->
     Backbone.Factlink.makeTooltipForView @,
       positioning:
         side: @_tooltipSideForPath(@opinionTypeRaphaels[type])

    @postRenderActions()

  postRenderActions: ->
    fractions = @displayableFractions()
    fractionOffset = 0

    for type, fraction of fractions
      @createOrAnimateArc type, fraction, fractionOffset
      fractionOffset += fraction

    @bindTooltips(fractions)

  createOrAnimateArc: (type, fraction, fractionOffset) ->
    opacity = (if @model.get('current_user_opinion') == type then @options.userOpinionStrokeOpacity else @options.defaultStrokeOpacity)

        margin: @maxStrokeWidth()/2 - 3
      selector: selector
      tooltipViewFactory: =>
        count = @model.get(opinionStyle.attributeName)
        new TextView text: "#{opinionStyle.groupname}: #{count}"

  _tooltipSideForPath: (path) ->
    bbox = path.getBBox()
