integrated code, so that tooltips show correct values for undirected chord diagrams