public DataTable SetGraphForActivities()
        {
            //string fromdate = "";
            //string todate = "";
            //fromdate = dtPick.FromDate;
            //todate = dtPick.ToDate;
            ActivitiesWebChart.Series.Clear();
            DataTable dt = VSWebBL.DashboardBL.ConnectionsBL.Ins.GetUserStatsCommon("NUM_OF_ACTIVITIES_", "_CREATED_YESTERDAY", Request.QueryString["Name"]);

            ActivitiesWebChart.SeriesDataMember = "StatName";
            ActivitiesWebChart.SeriesTemplate.ArgumentDataMember = "Date";
            ActivitiesWebChart.SeriesTemplate.ValueDataMembers.AddRange(new string[] { "StatValue" });
            ((LineSeriesView)ActivitiesWebChart.SeriesTemplate.View).LineMarkerOptions.Size = 7;
            ActivitiesWebChart.DataSource = dt;
            ActivitiesWebChart.DataBind();
            return(dt);
        }
Esempio n. 2
0
        public DataTable SetGraphForActivities()
        {
            //string fromdate = "";
            //string todate = "";
            //fromdate = dtPick.FromDate;
            //todate = dtPick.ToDate;
            ActivitiesWebChart.Series.Clear();
            //6/5/2016 Durga Added for VSPLUS-2925
            DataTable dt = VSWebBL.DashboardBL.ConnectionsBL.Ins.GetUserStatsForActivities("NUM_OF_ACTIVITIES_", "_YESTERDAY", selectedServer);

            if (dt.Rows.Count > 0)
            {
                ActivitiesWebChart.SeriesDataMember = "StatName";
                ActivitiesWebChart.SeriesTemplate.ArgumentDataMember = "Date";
                ActivitiesWebChart.SeriesTemplate.ValueDataMembers.AddRange(new string[] { "StatValue" });
                ((LineSeriesView)ActivitiesWebChart.SeriesTemplate.View).LineMarkerOptions.Size = 7;
                ActivitiesWebChart.DataSource = dt;
                ActivitiesWebChart.DataBind();
            }
            return(dt);
        }