/// <summary> /// This method fills the ASQSEs by Score Type chart with data for the past year /// </summary> private void BindScoreTypeChart() { using (PyramidContext context = new PyramidContext()) { //Get the score type data for the past year var scoreTypeDate = context.spGetASQSEsByScoreType(string.Join(",", currentProgramRole.ProgramFKs), DateTime.Now.AddYears(-1), DateTime.Now) .ToList(); //Bind the chart to the data chartScoreType.DataSource = scoreTypeDate; chartScoreType.DataBind(); } }