     for alt in alternatives
       do(alt) ->
         if alt.uri
-          container.append($('<a>').attr('href', alt.uri).addClass(alt.type).attr('data-gricer-' + alt.type, true).append(alt.type))
+          container.append($('<a>').attr('href', alt.uri).addClass(alt.type).attr('data-gricer-' + alt.type, true).attr('data-label', alt.type).attr('data-type-selector', true).append(alt.type))
         else
           container.append($('<span>').addClass(alt.type).append(alt.type))
     

          graph = data.data.length < 4 or $.gricer.colors[i] and line[1]/data.total > 0.05 
          label = label_row = $('<td>')
          if data.detail_uri
            label = $('<a data-gricer-spread="true">').attr('href', data.detail_uri.replace('%25%7Bself%7D', encodeURI(line[0])))
            label_row.append(label)
          
          if graph

          
        label = label_row = $('<td>')
        if data.detail_uri
          label = $('<a data-gricer-process="true"></a>').attr('href', data.detail_uri.replace('%25%7Bself%7D', encodeURI(key)))
          label_row.append(label)
      
        if graph
