public string GetChartData(string piServer) { piServer = string.IsNullOrEmpty(piServer) ? Constant.PIPServer : piServer; IStatistic st = DataAccess.CreateStatistic(piServer); string json = st.ChartData(); return(json); }