addon/utils/graph-view.js
function _addTaskBubble(node, d) {
  var group = node.append('g');
  group.attr('class', 'task-bubble');
  group.append('use').attr('xlink:href', '#task-bubble');
  translateIfIE(group.append('text')
      .text(_trimText(d.get('data.totalTasks') || 0, 3)), 0, 4);

  translateIfIE(group, 38, -15);
}
function _addTaskBubble(node, d) {
  var group = node.append('g');
  group.attr('class', 'task-bubble');
  group.append('use').attr('xlink:href', '#task-bubble');
  translateIfIE(group.append('text')
      .text(_trimText(d.get('data.totalTasks') || 0, 3)), 0, 4);

  translateIfIE(group, 38, -15);
}
function _addTaskBubble ( node , d ) { var group = node . append ( 'g' ) ; group . attr ( 'class' , 'task-bubble' ) ; group . append ( 'use' ) . attr ( 'xlink:href' , '#task-bubble' ) ; translateIfIE ( group . append ( 'text' ) . text ( _trimText ( d . get ( 'data.totalTasks' ) || 0 , 3 ) ) , 0 , 4 ) ; translateIfIE ( group , 38 , - 15 ) ; }
Add task bubble to a vertex node
@param node {SVG DOM element} Vertex node
@param d {VertexDataNode}
Add task bubble to a vertex node