add total data to diagrams