xbar & s chart functionality implemented