[d3 diagram] add tooltip for titles that are too long