code: func legendDetailLabels(rpt *Report, g graph, origCount, droppedNodes, droppedEdges int) []string {
  	nodeFraction := rpt.options.NodeFraction
  	edgeFraction := rpt.options.EdgeFraction
  	nodeCount := rpt.options.NodeCount
  
  	label := []string{}
  
  	var flatSum int64
  	for _, n := range g.ns {
  		flatSum = flatSum + n.flat
  	}
  
  	label = append(label, fmt.Sprintf("%s of %s total (%s)", rpt.formatValue(flatSum), rpt.formatValue(rpt.total), percentage(flatSum, rpt.total)))
  
  	if rpt.total > 0 {
  		if droppedNodes > 0 {
  			label = append(label, genLabel(droppedNodes, "node", "cum",
  				rpt.formatValue(int64(float64(rpt.total)*nodeFraction))))
  		}
  		if droppedEdges > 0 {
  			label = append(label, genLabel(droppedEdges, "edge", "freq",
  				rpt.formatValue(int64(float64(rpt.total)*edgeFraction))))
  		}
  		if nodeCount > 0 && nodeCount < origCount {
  			label = append(label, fmt.Sprintf("Showing top %d nodes out of %d (cum >= %s)",
  				nodeCount, origCount,
  				rpt.formatValue(g.ns[len(g.ns)-1].cum)))
  		}
  	}
  	return label
  }
docs: // legendDetailLabels generates labels common to graph and text visualization.