added statistic code with x,y axis