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

      @trigger 'removeTooltips'

      @_makeTotalVotesTooltip()

      i = 1
      for type, opinionStyle of @options.opinionStyles
        @_makeTooltipForPath type, opinionStyle, "path:nth-of-type(#{i})"
        i++

  _makeTotalVotesTooltip: ->
    return unless @options.showsTotalVotesTooltip

      selector: '.js-total-votes'
      tooltipViewFactory: => new TextView text: 'Total votes'

  _makeTooltipForPath: (type, selector) ->
    Backbone.Factlink.makeTooltipForView @,
      positioning:
        side: @_tooltipSideForPath(@opinionTypeRaphaels[type])
