Add SVG text as head/tail labels for queue