add total statistic and graph